Scientific Supercomputing at the NIH

Pico

To edit a file, type pico [filename] at the prompt. If the file does not already exist, pico will create it. You can now start typing into the file. The status line at the top of the display shows the name of the file being edited, and the bottom two lines list the available editing commands. Editing commands are given by holding down the Control key and typing the appropriate key (e.g. hold down Control and type l to refresh the screen).

Summary of Pico Commands
Ctrl-G display help
Ctrl-F,Ctrl-B move Forward or Backward
Ctrl-P,Ctrl-N move to Previous or Next line
Ctrl-W search for (Whereis) text
Ctrl-L Refresh the display.
Ctrl-D Delete the character at the cursor position
or use the delete/backspace key
Ctrl-l Mark cursor position as beginning of selected text. Setting mark when already set unselects text.
Ctrl-K Cut selected text
Ctrl-U Uncut (paste) last cut text inserting it at the current cursor position.
Ctrl-I Insert a tab at the current cursor position.
Ctrl-J Format (justify) the current paragraph. Paragraphs delimited by blank lines or indentation.
Ctrl-T Invoke the spelling checker
Ctrl-C Report current cursor position
Ctrl-R Insert an external file at the current cursor position.
Ctrl-O Output the current buffer to a file, offering to save it.
Ctrl-X Exit pico, saving file.