O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required