Forrest logo
back to the xxd tool

xxd:tldr:c4c7b

xxd: Revert a plaintext hexdump back into binary, and save it as a binary file.
$ xxd -r -p ${input_file} ${output_file}
try on your machine

The command you provided is xxd -r -p ${input_file} ${output_file}.

  • xxd is a command-line tool used for creating hex-dumps and reverse hex-dumps of binary files.
  • -r is an option used to reverse the hex-dump operation, meaning it converts a hex dump back into binary form.
  • -p is another option used to specify that the input file is in plain hex format.
  • ${input_file} is a placeholder for the input file's path and name. It should be replaced with the actual file you want to convert.
  • ${output_file} is a placeholder for the output file's path and name. It should be replaced with the desired name and location for the converted file.

Overall, this command takes an input file containing plain hex data, reverses the hex dump, and outputs the corresponding binary file.

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