What Is Cat Command in Linux?
Contents

Share

Facebook

Twitter

Email

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.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest