Pico Editor On Unix
PICO is designed to be a simple, easy-to-use text editor. It is the same editor used by the pine mail program. It is the easiest editor to learn. For general editing, this is the editor of choice. The commands you will need are shown on the bottom of the screen. To use PICO, simply type pico filename. The following are the most frequently used commands.
Frequently used commands in the PICO editor
- Control G Get Help on PICO
- Control O Save file with out exiting
- Control R Read File and paste into document
- Control Y Move to previous Page
- Control K Cut Text
- Control C Show cursor position
- Control X Exit and save
- Control J Justify
- Control W Locate word(s) in document
- Control V Move to next page
- Control U Un Cut Text
- Control T Spell check
- Control Shift 6 Set Mark (use with arrow keys to select blocks of text. Then use Ctrl K & Ctrl U to cut and paste blocks of text)
Since PICO is so easy to use, it is recommended that you use PICO as your default editor.
To do so, put the line setenv EDITOR pico in your .login file.
While VI is a powerful editor for serious programming and word processing, it is difficult to learn for beginners. For most user, the PICO editor will be adequate. You can set the default editor in TIN to PICO by adding that command in your login file.
- Login to your shell account or open a Terminal Window if you are using a window manager.
- Type pico .login
- Go to the end of the file and type setenv EDITOR pico
- Type Ctrl x to exit
- Type y to save the buffer
- Hit Enter to accept the default filename
The next time you login, PICO will be your default editor.