Linux常用基本命令(tail )


tail命令

作用:从文件的尾部查看,跟head命令作用相反,参数也差不多,默认显示后面10行

格式:

tail [option] [file]

-n : 显示行数

-c<字节数>

ghostwu@dev:~/linux/more$ cat ghostwu.txt | tail
file thank you
file thank you
file thank you
file thank you
file thank you
file thank you



and you?
ghostwu@dev:~/linux/more$ tail -2 ghostwu.txt 

and you?
ghostwu@dev:~/linux/more$ tail -c 3 ghostwu.txt 
u?

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM