head 中文man頁面
NAME(名稱)
head - 輸出文件的開始部分
SYNOPSIS(總覽)
../src/head [OPTION]... [FILE]...
DESCRIPTION(描述)
在標準輸出上顯示每個FILE的起始10行. 如果多于一個FILE,則一個接一個地顯示, 并且在每個文件顯示的首部給出文件名. 如果沒有FILE,或者FILE為-, 那么就從標準輸入上讀取.
- -c, --bytes=SIZE
- 打印起始的SIZE字節(jié)
- -n, --lines=NUMBER
- 顯示起始的NUMBER行,而非默認的起始10行
- -q, --quiet, --silent
- 從不顯示給出文件名的首部
- -v, --verbose
- 總是顯示給出文件名的首部
- --help
- 顯示幫助后退出
- --version
- 輸出版本信息后退出
SIZE可以有一個倍數(shù)后綴: b表示512,k表示1K,m表示1M. 如果第一個OPTION(選項)為-VALUE, 當后面連接著倍數(shù)bkm之一時,則讀為-c VALUE, 否則讀為-n VALUE.
AUTHOR(作者)
David MacKenzie.
REPORTING BUGS(報告bugs)
請報告bugs到<bug-textutils@gnu.org>.
COPYRIGHT(版權(quán))
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手冊形式維護的. 如果 info 和 head 程序在你那兒都已經(jīng)安裝好了,那么命令
- info head
應(yīng)該會讓你訪問到整篇手冊.
#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.