查看整个文件日志
cat test.log
实时查看日志信息
tail -f test.log
显示最后1000行
tail -n 1000 test.log
关键字查找
grep "xxx" test.log