使用场景: 实时查看test.log文件的最后50行,且显示行号 tail -50f test.log | cat -n tail -f 等同于--follow (根据文件进行追踪,实时显示)cat -n 等同于--number (由 1 开始对所有输出的行数编号)