wiki

Help! I'm trapped in a wiki!

Site Tools


programs:tail

tail

tail shows the last lines of a file.

By default it shows the last 10 lines. Specify with -n.
Skip the first 8 lines with tail +8 file.txt

With multiple files it prepends each with a header. Use this with tail -n 999 msg1 msg2 to view each file with a header in one screen.

Use -c 16 to output the last 16 bytes.

To 'watch' a file use -f and specify time interval in seconds with -s. Or just use watch

programs/tail.txt · Last modified: by 127.0.0.1