From the shell prompt, type ed filename, where filename is the file to edit. ed starts, then prints the number of characters it has read from filename. You are in command mode.