Contents
Share
Click to copy link
Share link
Link copied
cat
Unix-like operating system command
How does cat command work?
On Unix-like operating systems, the cat command reads data from files, and outputs their contents. It is the simplest way to display the contents of a file at the command line.
How do I create a file for my cat?
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 files.