CAT(1) User Commands CAT(1)
cat - concatenate files and print on the standard output
| Use Case | Command | Description |
|---|---|---|
| Concatenate files | cat file1 file2 | Output contents of file1 and file2 sequentially |
| Number all lines | cat -n file | Display file with line numbers |
| Number non-blank lines | cat -b file | Number only non-empty lines |
| Show ends of lines | cat -E file | Display $ at end of each line |
| Show tabs | cat -T file | Display TAB characters as ^I |
| Squeeze blank lines | cat -s file | Suppress repeated empty lines |
| Show all non-printing | cat -v file | Use ^ and M- notation |
| Read from stdin | cat | Copy standard input to standard output |
cat [OPTION]... [FILE]...
Concatenate FILE(s) to standard output.
With no FILE, or when FILE is -, read standard input.
cat f - g
Output f's contents, then standard input, then g's contents.
cat
Copy standard input to standard output.
Written by Torbjorn Granlund and Richard M. Stallman.
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Copyright ยฉ 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://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.
Full documentation <https://www.gnu.org/software/coreutils/cat> or available locally via: info '(coreutils) cat invocation'
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-16 11:41 @216.73.216.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)