Using the Unix Text Editor Pico |
NOTE: This document is also available in the following formats: Microsoft Word | Adobe Acrobat (PDF).
This document provides instructions for using the Unix text editor Pico on the ITCS Login Service (login.itd.umich.edu). These instructions may also apply to Pico on other Unix machines. Pico is a command-based text editor. Editing files with Pico is similar to composing messages in the Pine e-mail program; the commands you can use are listed at the bottom of your screen.
Windows. Use SSH Secure Shell software. For information about obtaining and using SSH Secure Shell, see Using SSH Secure Shell to Connect to Host Computers [Windows] (s4304).
Mac OS X. Mac OS X comes with SSH software called Terminal. Open the Applications folder, then the Utilities folder to find it. Open Terminal and enter this command:
The Blue Disc installs an icon in your dock that you can click to connect to the Login Service.
Mac OS 8.6-9.2.2. Mac Classic users can use MacSSH, which is available on the Blue Disc.
The mark feature (^^) allows you to mark any segment of text, cut it out (^K), move the cursor, and paste the text (^U) in the new location.
|
Command
|
What the Command Lets You Do |
|---|---|
|
Arrow keys
|
Move curser up, down, to the right, and to the left. |
|
Delete/ Backspace key
|
Move curser back one space. |
|
^A
|
Move curser to beginning of line. |
|
^B
|
Move curser back one character. |
|
^E
|
Move curser to end of line. |
|
^F
|
Move curser forward one character. |
|
^N
|
Move curser to next line. |
|
^P
|
Move curser to previous line. |
|
^V
|
Move curser forward a page of text. |
|
^Y
|
Move curser backward a page of text. |
|
^-space
|
Move curser to next word. |
|
Command
|
What the Command Lets You Do |
|---|---|
|
^C
|
Report current cursor position. |
|
^D
|
Delete the character at the cursor position. |
|
^G
|
Display the Pico help file. |
|
^H
|
Delete previous character. |
|
^I
|
Insert a tab at the current cursor position. |
|
^J
|
Reformat the text in the paragraph the cursor is on so that it is left-justified and the right margin is ragged (a paragraph is separated by one blank line). Useful when you are editing a paragraph and the lines become uneven. |
|
^K
|
Cut marked text or current line. |
|
^L
|
Redraw screen. |
|
^O
|
Output the current buffer to a file, saving it. |
|
^R
|
Insert text from an existing file. Pico prompts you for the name of a file in your IFS home directory. You can then type ^T to see a list of files in your home directory. Use the arrow keys to navigate to the file you want, and then press Return to read in the selected file. |
|
^T
|
Check the spelling in the file you are composing. You will be prompted at the bottom of the screen with each misspelled word. You can correct the word, then press Return to change it in the text. If you don't want to change the spelling of a word flagged by the spell checker, press Return to continue the spell check without making changes. If a word is misspelled more than once, you will be prompted to confirm the correction of each occurrence. |
|
^U
|
Undelete the last line, series of lines, or marked block you deleted. Using Mark (^^), Cut (^K), and Undelete (^U) is a convenient way to move text to a new location in your file. Also, ^U can be used to "unjustify" the last justification. |
|
^W
|
Search the file for a string of characters (such as a word). The cursor is put on the first occurrence appearing after the location of the cursor. The search will wrap to the beginning of the file when it no longer finds matches in the remainder of the file. To search for the same string a second time, press ^W to begin search and then just press Return to accept the previous search string shown in square brackets rather than entering a new search string. |
|
^X
|
Exit Pico. You'll be prompted whether to save the buffer (your changes). |
|
^^
|
Mark cursor position as beginning of selected text. Used to set a mark and then perform a delete/move operation on a block of text. |
Create, Copy, Rename, and Remove Unix Files and Directories (S4148)
List Contents and Navigate Unix Directories (S4149)
We welcome your comments; please send e-mail.
ITCS's Online Help Desk provides a variety of computing help resources.