🌐
Linux Man Pages
man7.org › linux › man-pages › man1 › hexdump.1.html
hexdump(1) - Linux manual page
Display the input offset in hexadecimal, followed by eight space-separated, six-column, zero-filled, two-byte quantities of input data, in octal, per line. -s, --skip offset Skip offset bytes from the beginning of the input. -v, --no-squeezing The -v option causes hexdump to display all input data.
🌐
Linux Man Pages
linux.die.net › man › 1 › hexdump
hexdump(1) - Linux man page
The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user specified format.
🌐
Linux Command Library
linuxcommandlibrary.com › man › hexdump
hexdump man | Linux Command Library
hexdump linux command man page: displays file contents in hexadecimal, decimal, octal, or ASCII formats
🌐
Linux Man Pages
linux.die.net › man › 3 › hexdump
hexdump(3) - Linux man page
hexdump - print the contents of memory in standard hex dump format
🌐
SUSE
suse.com › blog › making-sense-hexdump
Making Sense of Hexdump
November 24, 2008 - The n/m syntax is specific to hexdump and there are a few other hexdump specifics but the element beginning with a % comes from the C printf function family, it is referred to in the hexdump man page and you can look at the syntax in more detail with man 3 printf.
🌐
Linux Manpages
man.cx › hexdump(3)
Linux Manpages Online - man.cx manual pages
hexdump - dump binary data in hex/ascii format · Debug Library (-ldebug) #include <debug/log.h> #include <debug/hex.h> void hexdump(const void *ptr, size_t size); hexdump() prints size bytes, starting at ptr in memory, using the debug log system. The output consists of 6 columns.
🌐
MIT
space.mit.edu › home › › gsg › doc › v › man › html › hexdump.1.html
Manual page for hexdump(1)
hexdump print out a hexadecimal dump of the named file. -a · prints the address at the beginning of each line. (offset from start of block) -o · does a lseek of the amount of this argument, (in hex) for an offset. -m · max number of dump lines printed. (very approximate) -u · prints out ...
🌐
TutorialsPoint
tutorialspoint.com › unix_commands › hexdump.htm
hexdump Command in Linux
hexdump is a robust command-line utility in Linux that converts the contents of a file into a readable format. It supports multiple formats, such as − Developers often deal with binary data, which is not easily readable.
🌐
Ubuntu Manpages
manpages.ubuntu.com › jammy › man(9)
Ubuntu Manpage: hexdump - dump a block of bytes to the console in hexadecimal form
Provided by: freebsd-manpages (Version: 12.2-1) Report a bug · #include <sys/systm.h> void hexdump(void *ptr, int length, const char *hdr, int flags); The hexdump() function prints an array of bytes to the console in hexadecimal form, along with the ASCII representation of the bytes, if possible.
Find elsewhere
🌐
Arch Linux Man Pages
man.archlinux.org › man › hexdump.1.en
hexdump(1) — Arch manual pages
The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format.
Top answer
1 of 2
4

This is from man hexdump:

The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user specified format.

In short, it transforms text from one format to another. Traditionally, hexdump is mostly used for debugging, especially programs that are using low-level libraries.

But now with unicode, I sometimes use it to get different values of characters or to transform lines or files.

Because it is a filter, you send text into it. An easy way to do this is with the pipe operator (|).

It outputs the text displayed as either ASCII, decimal, hex, or octal. You use format specifiers to determine the output. These are command options you put after the hexdump.

If you want to see the results on the command line you need to start off with echo.

So it's echo text-to-transform | hexdump options optional-format-specifiers

An example from the man page is:

echo hello | hexdump -v -e '/1 "%02X\n"'

which outputs the hex value of each letter.

This example may not seem useful but remember it's possible to recode entire files or dump contents of memory in a human readable form.

If you don't send input to hexdump, it keeps waiting and appears to do nothing. This is what would happen if you ran hexdump by itself. When you say it froze, did more than that happen?

2 of 2
0

It prints data in human readable format, typically hexadecimal. Like most unix commands, without any arguments it reads the data on stdin and writes to stdout, so if you didn't redirect stdin, then it is simply waiting for you to type some data into the terminal. The computer is not frozen, only the command is waiting for input. You can interrupt the command with Ctrl-C, or Ctrl-D indicates the end of input.

🌐
Oracle
docs.oracle.com › cd › E88353_01 › html › E37839 › hexdump-1.html
hexdump - man pages section 1: User Commands
July 27, 2022 - ... HEXDUMP(1) User Commands HEXDUMP(1) ... hexdump [options] file... DESCRIPTION The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format....
🌐
FreeBSD
man.freebsd.org › cgi › man.cgi
hexdump
HEXDUMP(1) General Commands Manual HEXDUMP(1) NAME hexdump, hd -- ASCII, decimal, hexadecimal, octal dump SYNOPSIS hexdump [-bcCdovx] [-e format_string] [-f format_file] [-n length] [-s offset] file ... hd [-bcdovx] [-e format_string] [-f format_file] [-n length] [-s offset] file ...
🌐
Ubuntu
manpages.ubuntu.com › bionic › man(1)
Ubuntu Manpage: xxd - make a hexdump or do the reverse.
Hexdump the first 120 bytes of this man page with 12 octets per line.
🌐
Appspot
brendanzagaeski.appspot.com › 0006.html
hexdump examples
hexdump -v -e '1/0 "0_ad |" 16/1 "%_p" 1/0 "|\n"' hexdump.txt · 0000000000 |The correction f| 0000000016 |or the aberratio| 0000000032 |n of light is sa| 0000000048 |id,.on high auth| 0000000064 |ority, not to be| 0000000080 | perfect even in| 0000000096 | that most perfe| 0000000112 |ct organ, the.ey| 0000000128 |e..| The iteration count for each format unit (term from the man page) defaults to 1 if none is specified.
🌐
Linux Command Library
linuxcommandlibrary.com › man › xxd
xxd man | Linux Command Library
$ xxd -r [hexdump.txt] [output.bin] Convert plain hex to binary · $ echo "[48656c6c6f]" | xxd -r -p · xxd [options] [infile [outfile]] xxd creates a hexadecimal dump of a file or standard input.
🌐
Linux Man Pages Online
man.he.net › man1 › hexdump
hexdump
HEXDUMP(1) User Commands HEXDUMP(1) ... ... hd options file ... DESCRIPTION The hexdump utility is a filter which displays the specified files, or standard input if no files are specified, in a user-specified format....
🌐
Linux Man Pages
linux.die.net › man › 1 › xxd
xxd(1): make hexdump/do reverse - Linux man page
xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form. Like uuencode(1) and uudecode(1) ...
🌐
Code Tools
code.tools › man › 9freebsd › hexdump
hexdump (9freebsd): Linux man pages – code.tools
The Fn hexdump function prints an array of bytes to the console in hexadecimal form, along with the ASCII representation of the bytes, if possible.