天天看点

linux tail命令_操作手册

  • 1、输出文件最后10行的内容
tail Console.log      
  • 2、-n为最后n行,输出文件最后n行的内容,同时监视文件的改变,只要文件有一变化就同步刷新并显示出来
tail -nf Console.log        
  • 3、输出文件最后5行的内容
tail -n 5 filename      
  • 4、 输出最后10行内容,同时监视文件的改变,只要文件有一变化就显示出来。
tail -f filename      
  • 5、查看tail那些命令
tail       

继续阅读