How do I get the last 100 lines of a file in Unix?

How do I get the last 100 lines of a file in Unix?
Answer
The tail command is a command-line utility for outputting the last part of files given to it via standard input. It writes results to standard output. By default tail returns the last ten lines of each file that it is given. It may also be used to follow a file in real-time and watch as new lines are written to it.
 

Tìm kiếm

Back
Top