1、tail -n 5 test.txt ----- 查看test文件的最后5行的数据。
2、tail -n +5 text.txt ----- 从第5行开始,查看test文件第5行到最后的一行的文件内容。
3、tail -f test.log ~~ 持续的输出一个文件后续写入的内容。
1、tail -n 5 test.txt ----- 查看test文件的最后5行的数据。
2、tail -n +5 text.txt ----- 从第5行开始,查看test文件第5行到最后的一行的文件内容。
3、tail -f test.log ~~ 持续的输出一个文件后续写入的内容。