May 2017
Beginner
552 pages
28h 47m
English
The cat command is a simple and frequently used command and it stands for conCATenate.
The general syntax of cat for reading contents is as follows:
$ cat file1 file2 file3 ...
This command concatenates data from the files specified as command-line arguments and sends that data to stdout.
$ cat file.txt
This is a line inside file.txt
This is the second line inside file.txt
$ cat one.txt two.txt
This line is from one.txt
This line is from two.txt
The cat command not only reads from files and concatenates the data but also reads from the standard input.
The pipe operator redirects ...