Head
Gezinti kısmına atla
Arama kısmına atla
Kullanım: head [SEÇENEK]... [DOSYA]...
- Her DOSYA'nın ilk on satırını standart çıktıya yazar.
- Birden fazla DOSYA verildiğinde, her dosyadan önce dosya adını yazar.
- DOSYA adı verilmediğinde, veya - olduğunda standart girdiden okur.
Uzun seçenekler için zorunlu olan argümanlar kısa seçenekler için de zorunludur.
-c, --bytes=[-]N her dosyanın ilk N baytını yazdırır; başında `-' verilirse her dosyanın son N baytı haricindeki bütün içeriğini yazdırır -n, --lines=[-]N ilk 10 yerine ilk N satırı yazdırır; başında `-' verilirse her dosyanın son N satırı haricindeki bütün içeriğini yazdırır -q, --quiet, --silent dosya isimlerini göstermez -v, --verbose dosya isimlerini gösterir --help bu yardımı gösterir ve çıkar --version sürüm bilgisini gösterir ve çıkar
N çarpan ekine sahip olabilir: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, ve T, P, E, Z, Y için de aynıları geçerli.
- head hatalarını bug-coreutils@gnu.org rapor et
- GNU coreutils ana sayfa: <http://www.gnu.org/software/coreutils/>
- GNU yazılımı kullanımı genel yardımı: <http://www.gnu.org/gethelp/>
- head çeviri hatalarını <http://forum.ubuntu-tr.org/index.php?board=110.0> adresine rapor et.
Örnekler
:~$ head -c 114 /etc/X11/xorg.conf Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection
:~$head -c -114 /etc/X11/xorg.conf Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Module" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Device" Identifier "aticonfig-Device[0]-0" Driver "fglrx" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "aticonfig-Screen[0]-0" Device "aticonfig-Device[0]-0" Monitor "aticonfig-Mo
:~$ head -n 1 /etc/X11/xorg.conf Section "ServerLayout"
:~$ head -n -21 /etc/X11/xorg.conf Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Module" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver"
:~$ head -n -21 /etc/X11/xorg.conf -v ==> /etc/X11/xorg.conf <== Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Module" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver"