The "xxd command not found" error is almost always solved by installing the or xxd package through your system's package manager. Once installed, you'll have full access to hex dumping and binary manipulation features.
export PATH=$PATH:/usr/bin
You will see this error under three main scenarios: xxd command not found
On Red Hat-based systems, you generally need the vim-common package. The "xxd command not found" error is almost
xxd --version
sudo dnf install vim-enhanced # or for older systems sudo yum install vim-enhanced xxd command not found