显示开头或结尾命令 head 用来显示档案的开头至标准输出中,默认 head 命令打印文件的开头 10 行
常用参数: -n <行数> 显示的行数(行数为负数表示从最后向前数) head 1og.log -n 20 显示 1og.log 文件中前 20 行 head -c 20 log.log 显示 1og.log 文件前 20 字节 head -n -10 1og.log 显示 1og.log 最后 10 行