pico

Namo is a simple editor which you can use to edit your programs. The available options are displayed across the bottom of the screen to help the user perform the necessary functions like save, left, getting the cursor position, etc

Creating a new file:

To create or edit a file using pico, at the unix prompt type:

<machine>% pico [filename]

and press the <return> key. Replace [filename] with the name of the file you want to create or edit. Here is an example of how to use pico to create a file named "testfile". Type:

<machine>% pico testfile
and press the <return> key. You should see a screen similar to the one below:


In the upper-left corner of the screen, you will see the version of pico that you are using. 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 that are available to you. The "^" character represents the CONTROL key. To select one of these options, you must press the CONTROL key and the corresponding letter key at the same time. For example, to "Get Help," press the CONTROL key and the letter G key at the same time.

To delete a line ("Cut Text"), use the ^K option; To undelete a line ("UnCut Text"), use the ^U option.

Saving a new file

To prepare to save the file and exit pico, use the ^X ("Exit") option. You will see the program message at the bottom of the screen,

Save modified buffer:(ANSWERING 'No' WILL DESTROY CHANGES)?
^C Cancel Y Yes N No

Press the Y key.
You will see the program message,
File Name to write : testfile
Press the <return> key. You will see a message indicating how many lines are included in the file.

Editing an existing file

To edit an existing file, at the unix prompt (<machine>%), type:

<machine>% pico filename
Press the <return> key. Replace filename with the name of the file you want to edit. After you make the editing changes you want, save the file again following the steps outlined above.

PICO QUICK REFERENCE:

^C, Cur Pos:Gives the current Cursor position
^G, Get Help: determine where the cursor is in the file
^J, Left: go to an online help menu
^O, WriteOut: left the text in the entire paragraph
^R, Read File: save the text you've written without quitting pico
^T, To Spell: include a previously written file in your current text
^V, Next Pg: check the spelling in the file
^W, Where is: move the cursor to the next page of the file
^Y, Prev Pg: search for character string patterns move to the previous page of the file
^X, To Quit the program
^K, To Cut the text
^U, To Uncut the cut text

Other Editors :

1. Text Editor

2. Emacs

3. Vi Editor

PREVIOUS HOME NEXT