Text ProcessingLesson 22Free preview
Bash View End (tail)
This lesson is part of Bash · All levels
Summary
The tail command displays the end of the file, usually the last few lines. The -n option specifies the number of rows, while the -f makes it possible to keep track of the data addition in real-time. This combination makes tails very popular for monitoring files.
Key points
- Tail file shows the last 10 rows of the built-in
- n N displays the last line N
- F following the growing file
- Press Ctrl+C to stop the follow mode
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.