Forrest logo
back to context overview

head

List of commands for head:

  • head:tldr:27370 head: Output the first few lines of a file.
    $ head -n ${count} ${filename}
    try on your machine
    explain this command
  • head:tldr:357b3 head: Output the first few bytes of a file.
    $ head --bytes ${count} ${filename}
    try on your machine
    explain this command
  • head:tldr:b6b93 head: Output everything but the last few bytes of a file.
    $ head --bytes -${count} ${filename}
    try on your machine
    explain this command
  • head:tldr:db727 head: Output the first few lines of a file.
    $ head --lines ${count} ${filename}
    try on your machine
    explain this command
  • head:tldr:fa104 head: Output everything but the last few lines of a file.
    $ head --lines -${count} ${filename}
    try on your machine
    explain this command
back to context overview