What Is the Use of Cat Command in Linux?
Contents the Cat (Short for “Concatenate“) Command Is One of the Most Frequently Used Commands in Linux/Unix-Like Operating Systems. Cat Command Allows Us to...
The cat (short for “concatenate“) command is one of the most frequently used commands in Linux/Unix-like operating systems. cat command allows us to create single or multiple files, view content of a file, concatenate files and redirect output in terminal or files.
Why is cat command used?
Cat(concatenate) command is very frequently used in Linux. It reads data from the file and gives their content as output. It helps us to create, view, concatenate files.
How do I cat a file in Linux?
To create a new file, use the cat command followed by the redirection operator ( > ) and the name of the file you want to create. Press Enter , type the text and once you are done, press the CRTL+D to save the file. If a file named file1. txt is present, it will be overwritten.