Linux Commands
Linux File Commands
The cat command is a multi-purpose utility in the Linux system. It can be used to create a file, display content of the file, copy the content of one file to another file, and more.
Syntax:
- cat [OPTION]... [FILE]..
To create a file, execute it as follows:
- cat > <file name>
- // Enter file content
Press "CTRL+ D" keys to save the file. To display the content of the file, execute it as follows:
cat <file name>
Output:
No comments:
Post a Comment