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?