How to use Linux pico commands

Source: Internet
Author: User

Pico is a simple and easy-to-use, display-oriented text editing program that comes along with pine, a program that processes emails and newsgroups.

Syntax

Pico [-bdefghjkmqtvwxz] [-n <interval seconds>] [-o <working Directory>] [-r <edit page width>] [-s <spell checker>]

[+ <Number of columns>] [file]

Parameter description:

  • -B. Enable the replacement function.
  • -D. Enable the delete function.
  • -E use the complete file name.
  • -F supports function keys such as F1 and F2. .. on the keyboard.
  • -G: displays the cursor.
  • -H online help.
  • -J: enable the switchover function.
  • -K default pico deletes all contents of the column where the cursor is located when the command is run.
  • -M enables the mouse support function. You can click the command list with the mouse.
  • -N <interval seconds> specifies how often a new email is checked.
  • -O <working Directory> sets the working directory.
  • -Q: ignore the default value.
  • -R <edit page width> sets the page width of the edited file.
  • -S <spell checker> also specifies the spell checker.
  • -T start tool mode.
  • -V starts the reading mode. Users can only watch and cannot edit the file content.
  • -W disables automatic line feed. You can use this parameter to edit columns with long content.
  • -X: close the command list below the dashboard.
  • -Z enables pico to be interrupted by Ctrl + z and saved to background jobs.
  • + <Number of columns> when you run the pico command to enter the editing mode, edit from the specified number of columns.

Instance

Run the pico command to edit the testfile. Enter the following command in the terminal:

Pico testfile

The output result is as follows:

GNU nano 2.0.9 File: testfile # The Editor version number and file name are displayed from left to right.

# Editing area

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 rows read] # menu bar

^ G help ^ O write ^ R read file ^ Y previous page ^ K cut text ^ C at the Mark position

^ X out ^ J alignment ^ W search ^ V next page ^ U restore cut ^ T spelling check

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.