2 Minutes To Code (β Version)

'tail' command - 2 minute tutorial

Overview of 'tail' command

The unix command tail will display the last n lines or last n bytes from a byte. It can also monitor a file and whenever it is modified, displays the latest lines.

We will start with a few basic examples and then explore all the advanced options that 'tail' provides in the next few pages.