04-03 cat command

01

Checkout man pages, like other commands. 4 major functions of cat

  • 1. Display file content

02

  • 2. Combine Files

this will combine files in output

03

We can ouput the two files into a new file with the > right arrow

04

  • 3. Create Files

We can create file with cat along with the > right arrow, followed by the file name, the cursor will stay to left side. When we are done typing the content of the file, press cntrl + D

05

  • 4. Copy/rename Files

Use cat with the filename then > greater than sign