cat

The cat command is short for 'catenate'. It is used to display the contents of a file in the terminal.

Example

cat projects/readme.txt

This will display the contents of readme.txt into the current terminal window.

'>' symbol

This symbol can be used to copy the contents of a file into another file

Example

cat readme.txt > newFile.txt

'>>' symbol

This symbol will append the contents of the first file to the end of the second file

Example

cat readme.txt >> anotherFile.txt

This will add all the text from readme.txt file at the end of the anotherFile.txt file.

results matching ""

    No results matching ""