O'Reilly logo

Solaris™ 7 Reference by Janice Winsor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

cat — Concatenate and Display Files

Synopsis

/usr/bin/cat [-nbsuvet] [file...] 

Description

Use the cat command to create short files, to concatenate two files into a third one, to append one file to the end of another, or to display the contents of files in sequence on the standard output.

The following syntax creates a new file named file . Everything that you type is written to file . cat sends one line at a time to the file after you press Return. You can use the backspace key to correct typos on the current line, but you cannot back up across lines. When you are finished, type Control-D on a line by itself to terminate the session and close the file. If the file does not exist, it is created. If it already exists, the contents are overwritten ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required