1. 查看文件前5行:
head -5 nowcoder.txt
  1. 查看文件后5行:
tail -5 nowcoder.txt
  1. 查看文件中间5行:
sed -n '6,10p' nowcoder.txt