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-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 18:58:08

date中文man

2011-08-15 13:32:18

smbcontrol中文man

2011-08-23 15:27:21

route中文man

2011-08-12 10:33:15

env中文man

2011-08-25 11:32:41

texinfo中文man

2011-08-25 10:52:33

securetty中文man

2011-08-15 10:10:02

mailto中文man

2011-08-24 09:54:45

ANALYZE中文man

2011-08-25 18:20:12

samba中文man

2011-08-15 16:01:49

2011-08-24 16:45:14

mailaddr中文man

2011-08-24 17:10:19

packet中文man

2011-08-25 09:07:16

suffixes中文man

2011-08-25 09:26:01

TRUNCATE中文man

2011-08-24 17:46:32

SELECT INTO中文man

2011-08-24 16:41:38

LOCK中文man
点赞
收藏

51CTO技术栈公众号