The cat command is used to concatenate one or more files and print the result to the standard output. If only one file is specified as input, cat will print its contents to the screen.
For example, here's the output of the cat /course/catsample1.txt command, which prints the contents of the /course/catsample1.txt file:
Here's the output of the cat /course/catsample2.txt command
cat multiple file at once.
if we cat two files at once cat command will concatenate content of those files.
if we cat two files at once cat command will concatenate content of those files.
Cat file with line numbers.