在linux环境下,查看日志文件(比如t.log)的最后100行数据的正确方式是
cat -100 a.log
mv -100 t.log
tail -100 t.log
grep -100 a.log