介绍 head 显示文件的前几行。 命令格式: head [-n count | -c bytes] [file ...] 常用选项: -n, --lines=[-]NUM 指定查看的行数 使用示例: ➜ linuxtest head -n 3 test1.txt justx ➜ linuxtest head -n 4 test1.txt justx 第一行文字
介绍 head 显示文件的前几行。 命令格式: head [-n count | -c bytes] [file ...] 常用选项: -n, --lines=[-]NUM 指定查看的行数 使用示例: ➜ linuxtest head -n 3 test1.txt justx ➜ linuxtest head -n 4 test1.txt justx 第一行文字