Co robi HEAD użycie. Konsola from standard input. With more than one file, print a header for each.

Czy przydatne?

Polecenie head

Wykonanie, użycie: Print the first few lines (default is 10) of one or more files. If files is missing or -, read from standard input. With more than one file, print a header for each file

Opcje wykonania head w konsoli

-c num[b|k|m] , --bytes num [b|k|m]

Print first num bytes or, if num is followed by b, k, or m, first num 512-byte blocks, 1-kilobyte blocks, or 1-megabyte blocks.

--help

Display help and then exit.

-n num, --lines num, -num

Print first num lines. Default is 10.

-q, --quiet, --silent

Quiet mode; never print headers giving filenames.

-v, --verbose

Print filename headers, even for only one file.

--version

Output version information and then exit.

Przykłady head działanie w Słownik polecenie H

Przykład HEAD użycie :
Jak użyć Display specified file or input in hexadecimal, octal, decimal, or ASCII format. Option flags are used to specify the display format co to jest.
Przykład HEAD użycie :
Jak użyć System administration command. Read or set the hard drive parameters. This command can be used to tune hard drive performance; it is mostly used with IDE drives, but can also be used with SCSI drives definicja.
Przykład HEAD użycie :
Jak użyć administration command. Read or set the hardware clock. This command maintains change information in /etc/adjtime , which can be used to adjust the clock based on how much it drifts over time co znaczy.
Przykład HEAD użycie :
Jak użyć Print the ID number in hexadecimal of the current host słownik.
Przykład HEAD użycie :
Jak użyć user authentication files used by the Apache web server. The -c option is used if you wish to create the file, and will overwrite any existing files rather than update them. The three arguments are znaczenie.