Cat, more, less, tail, head commands in Linux

Source: Internet
Author: User

The Cat command feature is used to display the contents of the entire file using no paging function, so it is often used with the more commands, and the Cat command is the ability to merge several files into one file.   More command function: Let the screen display full page when the pause, at this time can press the empty SPACEBAR continue to display the next screen, or press the Q key to stop the display. Less command function: The use of less command is similar to the more command and can also be used to browse ...

Cat the command function is used to display the contents of the entire file alone using no paging function so often and More command to use, Cat The command also has the ability to merge several files into one file.

   More Command function: Allow the screen to pause when displaying a full page, you can press the empty SPACEBAR to continue to display the next screen, or press Q key to stop the display.

   Less Command function: Less the use of commands and More commands are similar, and can be used to browse over a page of files. The difference is that the less command, in addition to pressing the SPACEBAR to display the file down, can also use the up and down keys to scroll the file. When you want to end the browsing, simply Press the Q key under the ":" prompt in the less command .

In fact, these three commands, in addition to the cat command has the ability to merge files, the rest of the function is similar, but from the browsing habits and display different ways.

Head, tail view the specified line from the beginning or tail.

Cat, more, less, tail, head commands in Linux

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.