🖥️hexdump
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the hexdump command with important options and switches using examples.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ██╗ ██╗███████╗██╗ ██╗██████╗ ██╗ ██╗███╗ ███╗██████╗
# ██║ ██║██╔════╝╚██╗██╔╝██╔══██╗██║ ██║████╗ ████║██╔══██╗
# ███████║█████╗ ╚███╔╝ ██║ ██║██║ ██║██╔████╔██║██████╔╝
# ██╔══██║██╔══╝ ██╔██╗ ██║ ██║██║ ██║██║╚██╔╝██║██╔═══╝
# ██║ ██║███████╗██╔╝ ██╗██████╔╝╚██████╔╝██║ ╚═╝ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝
# side-by-side hexadecimal and ascii view of the first 128 bytes of a file
hexdump -C -n128 /etc/passwd
# Convert a binary file to C Array
hexdump -v -e '16/1 "0x%02X, "' -e '"\n"' file.bin > hexarray.h
# Convert a binary file to Shell code
hexdump -v -e '"\\""x" 1/1 "%02x" ""'
# Generate random MAC address
hexdump -n6 -e '/1 ":%02X"' /dev/random|sed s/^://g
# Use hexdump to find hidden characters (space, CR, NL, ...) that prevent uniq from collapsing all entries.
sort lines.txt |uniq |hexdump -c
echo "https://evilearl.io/f/2347e6cb-0ad7-4ce5-b7eb-ed344c42fe2e …" | hexdump -c
# Unsure of that URL you copied and pasted and why it's causing problems, pipe it into hexdump to check it for non-ascii characters.
#==============================##==============================#
# CMD HEXDUMP #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command hexdump in a clear format. This allows users to quickly access the needed information for hexdump without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for hexdump are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.