Cat

From Linuxintro
Revision as of 11:02, 12 January 2010 by imported>ThorstenStaerk (New page: cat is a powerful tool that prints the content of a file. However cat is integrated into the Unix philosophy and is not limited to this. On a more general level, cat reads and prints ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

cat is a powerful tool that prints the content of a file.

However cat is integrated into the Unix philosophy and is not limited to this. On a more general level, cat reads and prints what it reads.

Exploring the concept

To understand how cat works, open a console. If you just type

cat

cat will read from the standard input (the keyboard) and print to standard output (the console).

If you type

cat file

cat will read from (a file named) file and print to standard output (the console).

See also