Posted 2022-06-21Updated 2022-07-04Learning-Note-學習筆記a few seconds read (About 52 words)head && tailTutorialheadhead -n 10 : 列印最前 10 行 tailtail -n 10 : 列印最後 10 行 tail -f <file.txt> : Following mode 持續列印 tail -n +1 ./*.txt : Print all *.txt with filename 1234567==> ./1.txt <==12==> ./2.txt <==34 印中間 (head + tail)1234567891011cat file.txt123456cat file.txt | tail -n 4 | head -n 234head && tailhttps://meowlucian.github.io/Linux/Command/head_tail/AuthorMeow LucianPosted on2022-06-21Updated on2022-07-04Licensed under#CodeLinux