‫The Cat Command is one of the most frequently used commands in Linux, Unix like operating systems.
‫The Cat Command allows us to create single or multiple files, view the contents of a file, concatenate
‫files, as well as redirect output in terminal or files.
‫That's where the cat command comes from, right concatenate.
‫I didn't just trip over that word anyway.
‫Generally, it's used to see the content of a text file.
‫I'll just show you how it works.
‫All right, so follow along first list files and there are two different text files here.
‫So let's check out the content of the my text file with the Cat Command.
‫And these lines are written inside the text file.
‫So if we want to add a new word or statement to this file, we can use a double greater than symbol.
‫Well, that's right, the new line and quit with control and see.
‫So let's see the content of the file again.
‫And as you can see, we've added one more line to the text file.
‫So what if we only use one greater than symbol?
‫So let's add in a new line again, run the Cat Command.
‫Single greater than symbol over rights, the entire content with the new line, we just added.
‫That's powerful stuff.
‫So let's see the content of the my text file to this time.
‫So if we run a cat command with both my text file and my text file to will see the contents of both.