head 中文man页面

系统
在标准输出上显示每个FILE的起始10行. 如果多于一个FILE,则一个接一个地显示, 并且在每个文件显示的首部给出文件名. 如果没有FILE,或者FILE为-, 那么就从标准输入上读取.

NAME(名称)

head - 输出文件的开始部分  

SYNOPSIS(总览)

../src/head [OPTION]... [FILE]...  

DESCRIPTION(描述)

在标准输出上显示每个FILE的起始10行. 如果多于一个FILE,则一个接一个地显示, 并且在每个文件显示的首部给出文件名. 如果没有FILE,或者FILE为-, 那么就从标准输入上读取.

-c, --bytes=SIZE
打印起始的SIZE字节
-n, --lines=NUMBER
显示起始的NUMBER行,而非默认的起始10行
-q, --quiet, --silent
从不显示给出文件名的首部
-v, --verbose
总是显示给出文件名的首部
--help
显示帮助后退出
--version
输出版本信息后退出

SIZE可以有一个倍数后缀: b表示512,k表示1K,m表示1M. 如果第一个OPTION(选项)为-VALUE, 当后面连接着倍数bkm之一时,则读为-c VALUE, 否则读为-n VALUE.  

AUTHOR(作者)

David MacKenzie.  

REPORTING BUGS(报告bugs)

请报告bugs到<bug-textutils@gnu.org>.  

COPYRIGHT(版权)

Copyright � 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

SEE ALSO(另见)

head 的完整文档是以Texinfo手册形式维护的. 如果 infohead 程序在你那儿都已经安装好了,那么命令

info head

应该会让你访问到整篇手册.  

#p#

NAME

head - output the first part of files  

SYNOPSIS

head [OPTION]... [FILE]...  

DESCRIPTION

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

-c, --bytes=[-]N
print the first N bytes of each file; with the leading `-', print all but the last N bytes of each file
-n, --lines=[-]N
print the first N lines instead of the first 10; with the leading `-', print all but the last N lines of each file
-q, --quiet, --silent
never print headers giving file names
-v, --verbose
always print headers giving file names
--help
display this help and exit
--version
output version information and exit

N may have a multiplier suffix: b 512, k 1024, m 1024*1024.  

AUTHOR

Written by David MacKenzie and Jim Meyering.  

REPORTING BUGS

Report bugs to <bug-coreutils@gnu.org>.  

COPYRIGHT

Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

SEE ALSO

The full documentation for head is maintained as a Texinfo manual. If the info and head programs are properly installed at your site, the command

info coreutils head

should give you access to the complete manual.

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man
点赞
收藏

51CTO技术栈公众号