Original blog: https://blog.csdn.net/likunyv/article/details/75053638
A new school to
1. Introduction.
Linux can achieve a certain period read from the log, and then displays a certain number of lines per screen more,
2. Code
tail -n 4700 aa.log |more -1000
Back from the position at the end of the line before 4700, down 1,000 lines ctrl + f to find shortcuts page
Really well, thanks to the original bloggers share
Second, I often use the
In addition, there is my favorite:
1. Review the log at the end of 200 rows of data
tail -200 aa.log
2. Find the keyword in the specified file
grep '关键词' aa.log
3. Real-time View Log
tail -f catalina.out