输出文件的前10行

less 文件名 | head -10 

原文地址:https://www.cnblogs.com/bio-mary/p/11464730.html