CentOS Linux system Command File View Cat command

Source: Internet
Author: User


in the In a Linux system,the Cat command is a text output command that is typically used to view the contents of a document. It has the following three functions:

1), display the entire file at once

For example: To view The/etc/initab file, you can use the command:cat/etc/inittab

2), create a file from the keyboard

such as: command:cat >five.txt, and then enter some text information, exit directly can CTRL + C.

3), merge several files into one file

such as: command:catfive.txt six.txt > Fivesix.txt

command Cat 's command format:cat [ options ] [ file ]

Command parameters:

-A,--show-all equivalent to -vet

-B,--number-nonblank number of non-null output lines

-e equivalent to -ve

-E,--show-ends displays at the end of each line

-N,--number all line numbers for the output, numbering the number of rows for all outputs starting from 1

-S,--squeeze-blank a blank line that has more than two lines in a row and is substituted for a row

-T vs .-VT Equivalence

-T,--show-tabs to display the ^i character as a

-U ( ignored )

Description:The TAC is writing cat back, so his function is in contrast to Cat, which is continuously displayed on the screen by the first line to the last row, while the TAC The last line to the first line is displayed in reverse on the screen.


This article is from the "Eight Miles Bridge" blog, please be sure to keep this source http://baliq.blog.51cto.com/5984262/1689952

CentOS Linux system Command File View Cat command

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.