TAIL(1) General Commands Manual TAIL(1)

tailcopy the last part of a file

tail [-f] [-c number | -n number] file

The tail utility copies the contents of file to the standard output. If file is a single dash (‘-’) or absent, tail reads from the standard input.

number
Set the number of bytes to be copied.
Watch the given file. If no file was given, this option is ignored.
number
Set the number of lines to be copied.

Numbers having a leading plus (‘+’) sign are relative to the beggining of the input. Numbers having a leading minus (‘-’) sign are relative to the end of the input. If number is ommited, it defaults to 10.

The tail utility exits 0 on success, and >0 if an error occurs.

cat(1), head(1)

The tail utility is compliant with the specification.

December 28, 2019 EltaninOS