What other options does head have?

0111

The head command has several options, including:

  • -c or --bytes: Display the first specified number of bytes instead of lines. For example, head -c 20 filename.txt shows the first 20 bytes.
  • -q or --quiet: Suppress the output of the file headers when multiple files are being processed.
  • -v or --verbose: Always output the file headers when multiple files are being processed.
  • --help: Display help information about the command and its options.
  • --version: Show the version information of the head command.

You can combine these options as needed to customize the output.

0 Comments

no data
Be the first to share your comment!