User guide

cat
cat copy files
Concatenates files that you specify to the standard output. If you do not specify
files on the command line, the cat command copies standard input to standard
output.
You can also copy or append one file to another by specifying I/O redirection.
Syntax
cat [-l
length
]
file1
[
file2 . . .
]
Arguments
file1
[
file2 . . .
]
Specifies the name of the input files to be copied.
Options
-l
length
Specifies the number of bytes (decimal) of each input file to copy.
Examples
1.
>>> echo > foo ’this is a test.’
>>> cat foo
this is a test.
>>>
Creates the file
foo
with the echo command, and then uses the cat command
to send the contents of the file to the standard output, the console terminal
screen.
2.
>>> cat -l 6 foo
this i
>>>
Sends the first 6 bytes of the file
foo
to the standard output, the console
terminal screen.
See Also
echo, ls, rm
Console Commands 13–15