Display file in hexadecimal format (1-byte units), and 4 bytes per line

od

  • Display file contents in octal, decimal or hexadecimal format.
    Optionally display the byte offsets and/or printable representation for each line.
    More information: <https://www.gnu.org/software/coreutils/od>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

od --format={{x1}} --width={{4}} -v {{path/to/file}}

click the source code to copy install od on any operating system with command-not-found.com