cat: connection file and print output to the standard output device

Is concatenate (connecting, continuous) shorthand. cat command can be used to display the contents of the text file may be several files to be appended to the contents of another file , the file that is connected to merge.

Cat command basic format is as follows:

[root @ localhost ~] # CAT [options] filename 
or 
[root @ localhost ~] # CAT File 1 File 2> File 3

The former is used to display the contents of a file, and a respective common options described in Table 1; and the latter is connected to the merged file.

Options:

-A equivalent integrated -vET option is used to list all hidden symbols, symbols can view all hidden text, including carriage return ($), the Tab key (^ I) and the like.
- E are listed at the end of each line carriage returns $;
 -n for all output lines are numbered, that is, display line numbers
 -b same - different n, this option means that only the non-blank lines are numbered.
The Tab key -T ^ the I displayed;
 - V lists the special characters;
 -s When faced with a continuous two or more rows of blank row, it is replaced with a row of blank lines.

When the cat command to view the contents of the file, regardless of how much the contents of the file will displayed at once. If the file is very large, so the beginning of the file contents will not see. Linux  can use the PgUp+上箭头key combination to page up, but this page there is a limit, if the file is long enough, you still can not see the whole content of the file. Therefore, cat command is not suitable for viewing large files.

 

Guess you like

Origin www.cnblogs.com/pacino12134/p/11482936.html