cat

The cat command is used on Linux systems at the terminal. This information was obtained from a Kali Linux distribution using man cat.

NAME

cat – concatenate files and print on the standard output

SYNOPSIS

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

DESCRIPTION

Concatenate FILE(s) to standard output.

With no FILE, or when FILE is -, read standard input.

OPTIONS

OptionsPurpose
-A, --show-allequivalent to -vET
-b, --number-nonblanknumber nonempty output lines, overrides -n
-e equivalent to -vE
-E, --show-endsdisplay $ at end of each line
-n, --numbernumber all output lines
-s, --squeeze-blanksuppress repeated empty output lines
-tequivalent to -vT
-T, --show-tabsdisplay TAB characters as ^I
-u(ignored)
-v, --show-nonprintinguse ^ and M- notation, except for LFD and TAB
--helpdisplay this help and exit
--versionoutput version information and exit

EXAMPLES

cat f - gOutput f's contents, then standard input, then g's contents.
catCopy standard input to standard output.

AUTHOR

Written by Torbjorn Granlund and Richard M. Stallman.

Back to Command Help page.