fork download
  1. ➜ ~ tldr head
  2. head
  3.  
  4. Output the first part of files.
  5.  
  6. - Output the first few lines of a file:
  7.  
  8. head -n count_of_lines filename
  9.  
  10. - Output the first few bytes of a file:
  11.  
  12. head -c size_in_bytes filename
  13.  
  14. - Output everything but the last few lines of a file:
  15.  
  16. head -n -count_of_lines filename
  17.  
  18. - Output everything but the last few bytes of a file:
  19.  
  20. head -c -size_in_bytes filename
  21.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty