hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/tasks_display0.1.html (Einblicke ins Internet, 10/1995)

Examples of displaying files with the cat command

Examples of displaying files with the cat command

1. To display a file:

   cat README

This displays the contents of the file README. If the file contains more lines than can be displayed on the screen at once it will scroll by: use a pager instead.

2. To display line numbers:

   cat -b myprog.c

This displays the contents of myprog.c and numbers the lines. Blank lines are not numbered.