首页 > 窍门 > 科技数码

linux如何查看文件前两行?(linux查看后几行命令)

来源: 更新时间:2023-07-15 00:12:23
The Beginning

在Linux中,首先cd到要查看前两行内容的文件所在目录,输入cat filename| head -n 2 | tail -n +1 即可!

Empire CMS,phome.net

THE END

TAG:两行  文件  目录  

猜你喜欢

相关文章