To create and edit files on a central UNIX server, you can use the text-editing program called "pico". Pico is a simple editor in which available options are displayed across the bottom of the screen.
To create or edit a file using pico, at the UNIX prompt (represented by the % character), type
In the following example, you will see how to use pico to create a file named "testfile."
and press the ENTER key.
In the upper-left corner of the screen, you will see the version of pico that you are using (e.g., PICO 2.9). To the right of the version number, you will see the name of the file that you are creating (e.g., "File: testfile").
Across the bottom of the screen, you will see the options you can use. The "^" character represents the CONTROL (CTRL) key. To select one of these options, you must hold down the CTRL key while pressing the corresponding letter key. For example, to "Get Help," press the CTRL key while pressing the letter G key.
If you make a typographical error, you can use the BACKSPACE or DELETE key to delete a character to the left of the cursor. To delete a line ("Cut Text"), use the ^K option; to undelete a line ("UnCut Text"), use the ^U option.
Save modified buffer:(ANSWERING 'No' WILL DESTROY CHANGES)?
Press the Y key.
File Name to write: testfile
Press the ENTER key.
You will see a message indicating how many lines are included in the file.
To edit an existing file, at the UNIX prompt (%), type
Some editing options are described below:
^C | Cur Pos | determine where the cursor is in the file |
^G | Get Help | go to an online help menu |
^J | Justify | justify the text in the entire paragraph |
^O | WriteOut | save the text you've written without quitting pico |
^R | Read File | include a previously written file in your current text |
^T | To Spell | check the spelling in the file |
^V | Next Pg | move the cursor to the next page of the file |
^W | Where is | search for character string patterns |
^Y | Prev Pg | move to the previous page of the file |
If you need help while you are working with pico, you can use online help at any point by pressing the appropriate "help" option displayed at the bottom of the screen (e.g., ^G to "Get Help").
CopyrightUniversity of Delaware, April 1997.
Last Updated: April 3, 1997
http://www.udel.edu/topics/software/general/editors/unix/pico/picotips.html i>