Living in the Shell #20; tail (Display/Follow File Content)

tail ⛵
Display or follow file content.
ℹ️ Here, following means streaming a file while it's being updated (appended).
ℹ️ You can use -c in place of -n in the following examples, to switch to binary offset selection.
Print bottom N lines of a file -n
tail -n 5 ~/.bashrc
Prints last 5 lines of
~/.bashrc
Print from N-th line afterwards -n +N
tail -n +3 ~/.bashrc
Prints
~/.bashrcfrom the 3rd line until the end.
Following syslog events -f
tail -f /var/log/syslog
Follows system logs (on Debian/Ubuntu).
![Godoc-Lint: a linter for Go Doc Comments (godocs) [RE#16]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1741533596295%2F731ef95a-1af8-49ae-843d-a19d9d418fdf.png&w=3840&q=75)
![Optimize Postgres Containers for Testing [RE#15]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1741533395875%2Fe1a3c4fc-4354-4482-88b8-e8c14750e00a.png&w=3840&q=75)

