tail:输出文件的最后几行。

  用法:

  1. tail filename

  输出文件最后10行的内容

  2. tail -n 5 filename

  输出文件最后5行的内容

  3. tail -F filename

  监视文件的改变,只要文件有一变化就显示出来。