Unix

cat Command in Unix/Linux

cat  means "catenate". It read  the data from files and print on the standard output. It is the simplest way to display the contents of a file at the command line.
The syntax for the cat command is
The options are

Examples of cat command 

The command for gives the line numbers for data

The command for gives the header of the file

Redirection operator (>)
It will redirect the screen output to another file, this will override the existing content of the file.
(>>)
Redirects the screen output to another file without override
Example for Redirection operator










Powered by Blogger.