English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux pico command

Linux Command大全

The Linux pico command is used to edit text files.

pico is a simple and easy-to-use text editor that is mainly display-oriented and comes with the pine program for handling email and newsgroups.

Syntax

pico [-[bdefghjkmqtvwxz]-[Interval Seconds]-[Working Directory]-[Edit Page Width]-[Spell Checker]+[Column Number][File]

Parameter Description:

  • -Enable the replacement feature.

  • -Enable the delete feature.

  • -Use the full file name.

  • -Support F on the keyboard.1F2and other function keys.

  • -Display the cursor.

  • -Online help.

  • -Enable the toggle feature.

  • -When using the cut command, pico will delete all the content of the column where the cursor is located by default.

  • -Enable the mouse support feature, you can select commands from the list using the mouse.

  • -Set how often to check for new emails.

  • -Set the working directory.

  • -Ignore the preset value.

  • -r<Page Width for Editing> Set the page width for editing files.

  • -s<Spell Checker> Specify a spell checker.

  • -t Start tool mode.

  • -v Start read-only mode, users can only view and cannot edit the content of the file.

  • -w Close automatic line break, this parameter can be used to edit very long columns.

  • -x Close the command list below the window.

  • -z Allow pico to be controlled by Ctrl+z Interrupt, temporarily stored in the background job.

  • +<Column Number> Execute pico command to enter edit mode and start editing from the specified column number.

Online Examples

Use the pico command to edit the testfile file, input the following command in the terminal:

pico testfile

The output result is as follows:

GNU nano 2.0.9 File: testfile #From left to right are the editor version number and file name  
#Editing Area  
Linux networks are becoming more and more common, but security is often an over  
Linux Network Security focuses on securing Linux in a networked environment, wher  
[ Already Read3 Line] #Following is the menu bar  
^G Help^O Write^R Read File^Y Previous Page^K Cut Text^C Set Cursor  
^X Leave^J Align^W Search^V Next Page^U Undo Cut^T Spell Check

Linux Command大全