cat [options] file...Arguments explained
- file is one or more files to print.
- -n numbers output lines.
Common examples
cat /etc/os-releaseShows distribution identity information.
cat part1.txt part2.txt > combined.txtWrites both files into a new file.
| Field | Details |
|---|---|
| Command | cat |
| Category | Viewing Content |
| Primary use | Prints and concatenates file contents. |
| Syntax | cat [options] file... |