Simple tips and commands for linux beginners (3)

Source: Internet
Author: User

Simple tips and commands for linux beginners (3) ctrl + c terminate the current process (entering the writing command status) ctrl + k Delete the content from the cursor to the beginning of the line ctrl + u Delete the content from the cursor to the End of the line Home key move the cursor to the End of the line file View file type more View File Content press enter to gradually scroll down Press space to scroll down a screen, press B to scroll up one screen and press q to exit the cat-n file name to view the file content and display the row number, for example, [root @ teacher lianxi] # When cat-n messages is used to view the messages file, display line number headhead-n + 3 file name display the first three lines of the file (same effect as "head-3 File Name) the head-n-3 file name does not show the last three lines of the file tailtail-n-3 the file name shows the last three lines of the file tail-n + 3 the file name is displayed starting from the 3rd lines of the file, for example: [root @ teacher lianxi] # head-n 50 hosts | tail-n 21 | more (from 30 rows to 50 rows) head is "+" 50 by default, that is, the first 50 rows of tail are displayed as "-" 21 by default, that is, the last 21 rows are displayed. That is, from 30 rows to 50 rows (including 21 rows in total) "|" is the pipe symbol, that is, the output result is used as the input.

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.