1、查看前10行
head -10 file
2、查看后10行
tail -10 text
3、查看除了前10行之外的内容
tail -n +10 text
4、查看除了后10行之外的内容
head -n -10 text