1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.it/common/head.md
2021-03-30 09:04:55 -03:00

523 B

head

Stampa a schermo le prime linee di un file. Maggiori informazioni: https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html.

  • Stampa a schermo le prime linee di un file:

head -n {{numero_di_linee}} {{file}}

  • Stampa a schermo i primi byte di un file:

head -c {{numero_di_byte}} {{file}}

  • Stampa a schermo tutto il file meno le ultime linee:

head -n -{{numero_di_linee}} {{file}}

  • Stampa a schermo tutto il file meno gli ultimi byte:

head -c -{{numero_di_byte}} {{file}}