tail:输出文件的最后几行。
用法:
1. tail filename
输出文件最后10行的内容
2. tail -n 5 filename
输出文件最后5行的内容
3. tail -F filename
监视文件的改变,只要文件有一变化就显示出来。
转载于:https://blog.51cto.com/laokaddk/723830
用法:
1. tail filename
输出文件最后10行的内容
2. tail -n 5 filename
输出文件最后5行的内容
3. tail -F filename
监视文件的改变,只要文件有一变化就显示出来。
转载于:https://blog.51cto.com/laokaddk/723830