cat
The cat command is a standard Unix program used to concatenate and display files. The name is from catenate, a synonym of concatenate.[1]
- GNU Coreutils [EN] @ Fedora Package
- GNU Coreutils [EN] @ Homebrew Formula
Documentation
- cat [EN] @ GNU Coreutils Manual
- man 1 'cat' [EN]
Further Information
Syntax
cat [PARAMETER ...] [FILE ...]
Parameters
- -n, --number
- Number all output lines.
Examples
- Create a image from a Floppy
cat '/dev/fd0' >'/tmp/floppy.img'
- Restore a image to a Floppy
cat '/tmp/floppy.img' >'/dev/fd0'
- Paste content into a file
NOTE:
Press [Ctrl] + [D] to end the input.
cat >'file.txt'
bla
bla
bla