commands
cat — display text files
GNU cat copies input bytes to standard output. Multiple files are concatenated in operand order; without file operands it reads standard input. Use it for short known text files, not arbitrary binary files or secret-bearing data.
Formal Syntax & Structure
linux syntaxlinux
cat [FILE]...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| FILE | path | File to read; omit to read standard input. |
Return Value
text and exit status
File content on stdout, zero on success, nonzero on error.
Working Example
Example Snippetlinux
cat /etc/os-release