Command Not Found - Xxd

Extract hex, edit it, then write back:

xxd binary > binary.hex
# Edit binary.hex with a text editor
xxd -r binary.hex binary

Date: $(date +%Y-%m-%d) Status: Open

xxd --version | head -1

Successful output for echo "Hello" | xxd should resemble:

00000000: 4865 6c6c 6f0a                             Hello.

After installation, confirm with:

which xxd
xxd --version

Example output:

xxd 2025-01-29 by Juergen Weigert et al.

On Debian-based systems (e.g., Ubuntu):

sudo apt-get update
sudo apt-get install vim-common

On Red Hat-based systems (e.g., CentOS):

sudo yum install vim-common

On macOS (with Homebrew):

brew install vim