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