$ tail -f -n 100 log.txt
| -n | print the last N lines |
| -c | print the last N bytes |
| -f | follow — keep printing new lines as the file grows |
| -F | follow by name, retrying if the file is rotated |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.