cat
Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
cat [-A|--show-all] [-b|--number-nonblank] [-e ] [-E|--show-ends] [-n|--number] [-s|--squeeze-blank] [-t ] [-T|--show-tabs] [-v|--show-nonprinting] [-u ] [-h|--help] [-V|--version] [file]
Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
v(uutils coreutils) 0.10.0
Print the contents of a file to `stdout`:
cat path/to/file
Concatenate several files into an output file:
cat path/to/file1 path/to/file2 ... > path/to/output_file
Append several files to an output file:
cat path/to/file1 path/to/file2 ... >> path/to/output_file
Copy the contents of a file into an output file without buffering:
cat -u /dev/tty12 > /dev/tty13
Write `stdin` to a file:
cat - > path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.