cat: The Concatenate Files Program
cat | |
---|---|
Category | Command Line Program |
Part Of | GUN Core Utilities |
Classification | Tier 1 |
Official Documentation | GNU Cat |
1 Description
The cat
command is used to output the content of a file
to STDOUT. It is generally useful when you want to see the
content of a file without having to open the file in a text
editor like vim.
The cat
command will work with any type of file, however
when used on a file that contains something other than text
the output will probably be indecipherable by a human being
looking at the output.
2 Examples
2.1 View File Content
user-1@vm:~$ cat file_1.txt
This is some text.
user-1@vm:~$
This document was last updated: