Linux common Commands--cat, more, less, head, tail

Source: Internet
Author: User

1. Cat Action and Usage:

Cat [-option] File name

NAME

cat-concatenate files and print on the standardized output connection file and display standard outputs

-N Displays the contents of the file with line numbers.

-e Displays end-of-line terminator for each line

-T Display tab

-A Show All content

The TAC is displayed from the tail line to the first line.

2, more role and usage:

More [-option] file name

NAME

More-file perusal filter for CRT viewing split screen view file contents

more/etc/passwd

3. Less effect and usage:

Less [-option] file name

NAME

Less-opposite of more

4. Head function and Usage:

Head [-option] file name

NAME

Head-output the first part of the files output shows the previous lines

-N Displays the first n rows, showing the first 10 rows by default

5. Tail function and Usage:

tail [-option] File name

NAME

Tail-output the last part of the files output shows the following lines

-N Displays the following n rows, showing the following 10 rows by default

-F View the end of the file does not exit the view status, waiting to display the next append to this file new content, press CTRL + C exit


This article is from the "Learn Linux history" blog, please be sure to keep this source http://woyaoxuelinux.blog.51cto.com/5663865/1859312

Linux common Commands--cat, more, less, head, tail

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.