cat
FilesBeginner In simulator In real LinuxPrint or concatenate files
Name: cat = concatenate
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
cat reads each file in turn and writes the contents, joined together, to standard output; with no files it reads standard input. Its purpose is to concatenate files, though it is mostly used to show short ones.
For long files less is more comfortable; for just the beginning or end use head or tail.
Syntax
cat [OPTION]... [FILE]...Common options
| -n / --number | Number all output lines |
| -b / --number-nonblank | Number only lines that are not empty |
| -s / --squeeze-blank | Show runs of empty lines as one |
| -A / --show-all | Show tabs, line ends and other invisible characters |
| -E / --show-ends | Show $ at the end of each line (to see trailing spaces) |
| -T / --show-tabs | Show tabs as ^I |