Forrest logo
back to the hexdump tool

hexdump:tldr:76759

hexdump: Don't replace duplicate lines with '*'.
$ hexdump --no-squeezing ${filename}
try on your machine

The hexdump command is used to display the contents of a file in hexadecimal format. Here is an explanation of the specific options used in the command you provided:

  • --no-squeezing or -v: This option prevents the hexdump command from squashing multiple consecutive lines with identical content into an asterisk (*) and a line count. Without this option, if there are multiple lines with the same content, only one line would be displayed, and its count would be denoted with an asterisk.

  • ${filename}: This is a placeholder for the actual name of the file you want to display in hexadecimal format. You need to replace ${filename} with the name of the file you want to view.

In summary, the command hexdump --no-squeezing ${filename} will display the contents of the specified file in hexadecimal format line by line, without collapsing consecutive identical lines.

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 hexdump tool