Linux Common commands summary (update ... )

Source: Internet
Author: User

Text viewing and editing

1. Text Editing commands

Vi/vim

2. View File Contents command

Command Description Command format Parameters
Cat Continuously output the contents of a file on the screen Cat [-option] File name -N: Display line numbers together on the screen
-B: The line number is displayed on the screen, but the blank line does not count
More

After displaying a screen content, you can stop and scroll down. The ENTER key can be flipped one line,

Ctrl+f can be full page down, if you need to exit press the Q key.

More file names
Less

As with more, the only difference is that you can use PageDown and pageup to make up and down, for convenience.

Head file name
Head

By default, the first 10 lines that display the contents of the file

Head file name -N: Specify the number of rows to display
Tail

In contrast to head, the next 10 lines of file content are displayed by default

Tail file name -N: Specify the number of rows to display

Linux Common commands summary (update ... )

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.