[Next] [Up] [Previous] [Contents]
Next: Paging display system Up: Basic commands Previous: Listing files (ls)

Catenate (cat)

Catenate means ``to connect in a series.'' The cat command displays the contents of a file. If more than one file is placed in the command line, i.e. cat yellow blue, the files are displayed in succession. It is here that cat derives its name. With the use of the redirection operator (see section [*]) two files can be placed into a single file. Typing


    cat yellow blue > green
will cause green to contain the contents of yellow followed by the contents of blue.


c.c.taylor@ieee.org