tail:-n 查看n行日志
tail test.log 缺陷是看不了完整的日志
tail -n 20 test.log 查看日志最后20行
cat test.log 可以看完整的日志文件
cat test.log | grep 'python' 查找日志中含有python的关键字
tail:-n 查看n行日志
tail test.log 缺陷是看不了完整的日志
tail -n 20 test.log 查看日志最后20行
cat test.log 可以看完整的日志文件
cat test.log | grep 'python' 查找日志中含有python的关键字