1查看实时日志
tail -f xxx.log
2 查看日志前500行
tail -n 500 xxx.log
3查看日志最后500行
tail -n -500 xxx.log
4查看筛选日志
cat xxx.log | grep 关键词
版权声明:本文为Atlantis8354原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
tail -f xxx.log
tail -n 500 xxx.log
tail -n -500 xxx.log
cat xxx.log | grep 关键词