Write the contents of a text file to standard output.
cat README.mdPrint file contents to the terminal or join multiple files together.
cat [OPTION]... [FILE]...Write the contents of a text file to standard output.
cat README.mdDisplay a configuration file with line numbers.
cat -n config.conf| Option / clause | Description |
|---|---|
-n, --number | Number all output lines. |
-b, --number-nonblank | Number nonblank output lines. |
-s, --squeeze-blank | Suppress repeated empty output lines. |
-A, --show-all | Show nonprinting characters, equivalent to -vET. |
-E, --show-ends | Display $ at the end of each line. |
-T, --show-tabs | Display tab characters as ^I. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.