Linux "cat" Command Line Options and Examples
concatenate files and print on the standard output

Concatenate FILE(s) to standard output. With no FILE, or when FILE is -, read standard input.


Usage:

cat [OPTION]... [FILE]...




Command Line Options:

-A
equivalent to -vET
cat -A ...
-b
number nonempty output lines, overrides -n
cat -b ...
-e
equivalent to -vE
cat -e ...
-E
display $ at end of each line
cat -E ...
-n
number all output lines
cat -n ...
-s
suppress repeated empty output lines
cat -s ...
-t
equivalent to -vT
cat -t ...
-T
display TAB characters as ^I
cat -T ...
-v
use ^ and M- notation, except for LFD and TAB
cat -v ...
--help
display this help and exit
cat --help ...
--version
output version information and exitEXAMPLEScat f - gOutput f's contents, then standard input, then g's contents.cat Copy standard input to standard output.AUTHORWritten by Torbjorn Granlund and Richard M. Stallman.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report cat translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
cat --version ...