OnCallReady

Commands

tail - output the last part of files

tail [-n N] [-f] [file]...

Options you will use

-n N
Print the last N lines (default 10). -n +N starts AT line N.
-f, --follow
Keep the file open and print new lines as they are appended. Ctrl+C to stop.
-F
Like -f but retry if the file is rotated or does not exist yet.

Examples

$ tail -f /var/log/nginx/error.log

watch a log live

$ tail -n +2 file.csv

skip the header row

Taught in

Try tail in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.