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