Linux pico command

Linux 命令大全Linux Command Reference

The Linux pico command is used to edit text files.

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

Syntax

pico [-bdefghjkmqtvwxz][-n<间隔秒数>][-o<工作目录>][-r<编辑页宽>][-s<拼字检查器>][+<列数编号>][文件]

Parameter description:

  • -b Enable the replace function.
  • -d Enable the delete function.
  • -e Use the complete file name.
  • -f Support function keys such as F1, F2... on the keyboard.
  • -g Display the cursor.
  • -h Online help.
  • -j Enable the toggle function.
  • -k By default, when pico uses the cut command, it will delete all the content in the line where the cursor is located.
  • -m Enable mouse support, you can use the mouse to click command lists.
  • -n<interval seconds> Set how often to check for new email.
  • -o<working directory> Set the working directory.
  • -q Ignore preset values.
  • -r<edit page width> Set the page width for editing files.
  • -s<spell checker> Specify an additional spell checker.
  • -t Start tool mode.
  • -v Start read-only mode, users can only view and cannot edit the content of the file.
  • -w Disable automatic line wrapping, with this parameter you can edit very long lines.
  • -x Turn off the command list at the bottom of the screen.
  • -z Allow pico to be interrupted by Ctrl+z and suspended in a background job.
  • +<line number> When executing the pico command to enter edit mode, start editing from the specified line number.

Examples

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

pico testfile 

The output result 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 命令大全Linux Command Reference

Other Extensions