tips
All tips
5 tips Tail
One command, setting or habit at a time about Tail: what it does, the line to copy and a caveat or two.
Linux and shell 4
-
Look at the end of a file that has very long lines or none.
tail -c 2000 export.json -
Watch a job's output and get your prompt back when the job finishes.
tail -f --pid=1234 build.log -
Watch more than one log in a single terminal window.
tail -f /var/log/nginx/access.log /var/log/nginx/error.log -
Follows a log file by name so it keeps working after the file is rotated.
tail -F /var/log/nginx/access.log
Text processing 1
-
Prints a file starting at a chosen line, for example to skip a CSV header.
tail -n +2 export.csv
Nothing in this filter yet.