CLI – cat

The cat command is used to ‘concatenate and print files’. Here, the term ‘print’ simply means to display the content of a file to the
standard output device, typically the console. This command is only useful with common text files.

An example of its use is:

Johns-Mac-mini:~
jpurvis$ ls Desktop/
BitTorrent Sync    Scott       jpurvis alias
IMG_0204.jpg    cat.txt       w.jpg
Johns-Mac-mini:~ jpurvis$ cat Desktop/cat.txt
This is a test of the ‘cat’ command

This command is useful to display the content of a file.

The Apple Man page for the ln command can be seen here.


See my other CLI articles


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.