Forrest logo
back to the xxd tool

xxd:tldr:02da9

xxd: Display the output in plain mode, without any gaps between the columns.
$ xxd -p ${input_file}
try on your machine

The command "xxd -p ${input_file}" is used to display the content of a file in hexadecimal format.

Here's the breakdown of the command:

  • "xxd" is the command-line utility in Unix-like systems for creating a hex dump of a given file or standard input.
  • "-p" is an option used with "xxd" to specify the output format as plain hexadecimal (without any ASCII representation).
  • "${input_file}" is a placeholder for the file you want to display in hexadecimal format. You need to replace it with the actual file name or path.

So when you execute the command "xxd -p ${input_file}", it will read the contents of the specified file and print it in hexadecimal format on the console.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xxd tool