• The xxd utility is not pre-installed in most Linux distributions but can easily be installed with the default package manager.
  • The following examples show some ways that xxd can be used. See the xxd man page for additional examples by typing man xxd in the command prompt.
  • The xxd command allows you to create a hex dump from a file. In other words, you get basically the same output as with hexedit, but xxd only displays the output.
  • All we have to do is provide the input and xxd will encode the file to stdout automatically (a handy feature to have by default for shorter input files)
  • One such gem is the “xxd” command, a versatile tool designed for handling binary and hexadecimal data.
  • The xxd command is used to create a hexadecimal representation (hexdump) from a binary file, or vice-versa.
  • In this article, I’ll show you how to install XXD on Linux and then how to use the “xxd” command through different examples.
  • xxd is a versatile command-line tool that can display both binary and hexadecimal representations of file content.
    • Installing xxd on Linux
    • Using xxd command
    • Formatting output of xxd