Copied to clipboard

head

This command line tool is used to insert text into a document.

Examples

  • Show help information: head -h
  • Show version number: head -V
  • Use a custom separator: head -s "," file.txt
  • Add line numbers to each line of output: head -n file.txt
  • Quiet mode, do not output any log information: head -q file.txt
  • Output detailed log information: head -v file.txt
  • Custom output title: head -t "My File" file.txt
  • Specify the path to the configuration file: head -c config.json file.txt