cat

Joins or displays files

cat [options] [file-list]

The cat utility joins files end to end. It takes its input from files you specify on the command line or from standard input. You can use cat to display the contents of one or more ASCII files on the screen.

Arguments

The file-list is composed of pathnames of one or more files that cat displays. You can use a hyphen in place of a filename to cause cat to read standard input.

Options

--number

-n Numbers all lines as they are written to standard output.

--show-ends

-E Marks with dollar signs the ends of lines.

--show-nonprinting

-v Displays CONTROL characters with the caret notation (^M) and displays characters that have the high bit set (META characters) with the M- notation. This option ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.