|
NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | AUTHOR | REPORTING BUGS | COPYRIGHT | SEE ALSO | COLOPHON |
|
|
|
CAT(1) User Commands CAT(1)
cat - concatenate files and print on the standard output
cat [OPTION]... [FILE]...
Concatenate FILE(s) to standard output.
With no FILE, or when FILE is -, read standard input.
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-A\-A, --show-all]8;;\
equivalent to -vET
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-b\-b, --number-nonblank]8;;\
number nonempty output lines, overrides -n
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-e\-e]8;;\ equivalent to -vE
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-E\-E, --show-ends]8;;\
display $ or ^M$ at end of each line
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-n\-n, --number]8;;\
number all output lines
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-s\-s, --squeeze-blank]8;;\
suppress repeated empty output lines
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-t\-t]8;;\ equivalent to -vT
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-T\-T, --show-tabs]8;;\
display TAB characters as ^I
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-u\-u]8;;\ (ignored)
]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#cat-v\-v, --show-nonprinting]8;;\
use ^ and M- notation, except for LFD and TAB
]8;;https://www.gnu.org/software/coreutils/cat#cat--help\--help]8;;\ display this help and exit
]8;;https://www.gnu.org/software/coreutils/cat#cat--version\--version]8;;\
output version information and exit
cat f - g
Output f's contents, then standard input, then g's
contents.
cat Copy standard input to standard output.
Written by Torbjorn Granlund and Richard M. Stallman.
Report bugs to: bug-coreutils@gnu.org
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Report any translation bugs to
<https://translationproject.org/team/>
Copyright © 2026 Free Software Foundation, Inc. License GPLv3+:
GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
tac(1)
Full documentation <https://www.gnu.org/software/coreutils/cat>
or available locally via: info '(coreutils) cat invocation'
This page is part of the coreutils (basic file, shell and text
manipulation utilities) project. Information about the project
can be found at ⟨http://www.gnu.org/software/coreutils/⟩. If you
have a bug report for this manual page, see
⟨http://www.gnu.org/software/coreutils/⟩. This page was obtained
from the tarball coreutils-9.11.tar.xz fetched from
⟨http://ftp.gnu.org/gnu/coreutils/⟩ on 2026-05-24. If you
discover any rendering problems in this HTML version of the page,
or you believe there is a better or more up-to-date source for the
page, or you have corrections or improvements to the information
in this COLOPHON (which is not part of the original manual page),
send a mail to man-pages@man7.org
GNU coreutils 9.11 April 2026 CAT(1)
Pages that refer to this page: dpkg(1), dpkg-query(1), pmlogrewrite(1), pv(1), rpmuncompress(1), systemd-socket-activate(1), tac(1), ul(1), proc(5), proc_pid_net(5), proc_scsi(5), cpuset(7), time_namespaces(7), readprofile(8)