Linux常用命令 tail命令head命令grep命令Gzip命令 tail命令 tail -100f test.log 实时监控100行日志 tail -n 10 test.log 日志尾部10行日志 tail -n +10 test.log 10行之后的日志 head命令 和tail刚好相反 grep命令 一般其他命令搭配使用,达到筛选效果 例:tail -n test.log|grep “开始” //查看匹配test.log日志的拥有“开始”关键字的行 Gzip命令