tail [options] [file]Arguments explained
- file is optional; without it, tail reads standard input.
- -n chooses the number of lines.
- -f follows appended output.
- -F follows by filename across rotations.
Common examples
tail -f /var/log/syslogPrints new lines as they are written.
tail -n 50 app.logShows the last 50 lines.
| Field | Details |
|---|---|
| Command | tail |
| Category | Viewing Content |
| Primary use | Shows the last lines of a file or follows new output. |
| Syntax | tail [options] [file] |