Linux pico command
The Linux pico command is used to edit text files.
pico is a simple, easy-to-use, display-oriented text editor that comes with pine, a program for handling email and newsgroups.
Syntax
pico [-bdefghjkmqtvwxz][-n<间隔秒数>][-o<工作目录>][-r<编辑页宽>][-s<拼字检查器>][+<列数编号>][文件]
Parameter Description:
- -b Enables the replace function.
- -d Enables the delete function.
- -e Uses the full file name.
- -f Supports function keys on the keyboard such as F1, F2...
- -g Displays the cursor.
- -h Online help.
- -j Enables the toggle function.
- -k By default, when using the cut command, pico deletes all content in the line where the cursor is.
- -m Enables mouse support; you can click on the command list with the mouse.
- -n
Sets how often to check for new mail. - -o
Sets the working directory. - -q Ignores default values.
- -r
Sets the page width of the edited file. - -s
Specifies an alternative spell checker. - -t Enables tool mode.
- -v Enables read-only mode; the user can only view and cannot edit the file content.
- -w Disables automatic line wrapping; with this option you can edit very long lines.
- -x Hides the command list at the bottom of the screen.
- -z Allows pico to be interrupted with Ctrl+z and suspended as a background job.
- +
When entering edit mode with the pico command, start editing from the specified line number.
Example
To edit the file testfile with the pico command, enter the following command in the terminal:
pico testfile
The output is as follows:
GNU nano 2.0.9 文件: testfile #从左到右分别为编辑器版本号、文件名
#编辑区
Linux networks are becoming more and more common, but security is often an over$
Linux Network Securty focuses on securing Linux in a networked environment, whe$
[ 已读取3 行] #以下为菜单栏
^G 求助^O 写入^R 读档^Y 上页^K 剪切文字^C 在标位置
^X 离开^J 对齐^W 搜寻^V 下页^U 还原剪切^T 拼写检查
Linux Command Reference