Cmd Generator

head

输出文件的开头部分。

head

示例

# 显示前 10 行(默认)
head file.txt

# 显示前 20 行
head -n 20 file.txt

# 显示前 100 字节
head -c 100 file.txt

# 显示多个文件的前 5 行
head -n 5 file1.txt file2.txt

Sponsors