Linux pico command
Linux pico command is used to edit text files.
pico is a simple to use, mainly oriented to display text editing program that comes along with the program pine handling e-mail and newsgroups.
grammar
pico [-bdefghjkmqtvwxz][-n<间隔秒数>][-o<工作目录>][-r<编辑页宽>][-s<拼字检查器>][+<列数编号>][文件]
Parameter Description:
- -b open replacement function.
- -d Turn delete function.
- -e use the full file name.
- -f support F1 on your keyboard, F2 ... and other function keys.
- -g display cursor.
- -h online help.
- -j open switching function.
- -k When using preset pico Cut command, the contents of the column where the cursor will be deleted.
- -m Turn the mouse support, you can use the mouse click on the list of commands.
- -n <number of seconds> Set how often to check for new mail.
- -o <working directory> set the working directory.
- -q ignore the preset value.
- -r <Edit page width> Settings page to edit the file wide.
- -s <spell checker> specify otherwise spell checker.
- -t start Utility mode.
- -v Start reading mode, users can only view, not edit the contents of the file.
- -w Close Wrap, this parameter can edit the contents of a long column.
- -x close below the surface to change the list of commands.
- -z let pico Ctrl + z can be interrupted temporarily stored in the job in the background.
- + <Number of columns> pico instruction executed in edit mode, the number of columns from the specified start editing.
Examples
Use pico testfile command to edit the file, enter the following command in 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 拼写检查