Linux Cat Command - www.studyandupdates.com

Sunday

Linux Cat Command

Linux Commands


Linux File Commands


Cat Command

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:

  1. cat [OPTION]... [FILE]..  


To create a file, execute it as follows:

  1. cat > <file name>  
  2. // 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

Popular Posts