Friday, October 9, 2015

Display last few lines from file in unix/linux using tail command

$ tail file.txt

It will display last 10 lines from file.txt

$ tail file.txt -n 100

It will display last 100 lines from file.txt

No comments:

Post a Comment