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

tail

Displays the last part (tail) of a file

tail [options] [file-list]

The tail utility displays the last part, or end, of a file. This utility takes its input from one or more files you specify on the command line or from standard input.

Arguments

The file-list contains pathnames of the files that tail displays. When you specify more than one file, tail displays the filename of each file before displaying the lines of the file. When you do not specify a file, tail takes its input from standard input.

Options

--bytes=[[+]n[u]]

-c Counts by bytes (characters). The n is an optional nonzero integer. The u is an optional unit of measure that can be b (512-byte blocks), k (1,024-byte or 1-kilobyte blocks), or m (1-megabyte blocks). If you include ...

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