Lably
Skip to content

Cat (Unix)

Shell command for writing an input file or stream to standard output

  • 5 min read
  • 5 chapters

Related on Lably

Through Command (computing), Operating system and Syntax

In addition to combining files, cat is commonly used to copy files and in particular to copy a file to the terminal monitor. Unless redirected, cat outputs file content on-screen.

History

cat was part of the early versions of Unix, e.g., Version 1. It replaced pr, a PDP-7 and Multics command for copying a single file to the screen. It was written by Ken Thompson and Dennis Ritchie. The implementation of cat bundled in GNU coreutils was written by Torbjorn Granlund and Richard Stallman.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication