Installing xxd on Linux
While most Linux distributions come with the “xxd” command pre-installed, if you encounter an error when attempting to use it, you may need to install it based on your specific distribution.
Red hat/ Fedora based:
sudo dnf install xxd
Debian/Ubuntu based:
sudo apt install xxd
xxd Command in Linux
xxd is a command-line tool that is primarily used for creating and analyzing hexadecimal dumps from files. It can also be used to reverse the process and convert a hexadecimal dump back into binary form. In this article, let’s uncover the practical applications of the “xxd” command in the Linux ecosystem.
xxd Command in Linux
- What is a ‘hexadecimal dump’?
- Installing xxd on Linux
- Using xxd command:
- Generating hexadecimal dumps
- Converting hexadecimal dump to the original file
- Formatting output of xxd
- Different dump output styles
- Embedding Binary Data in C/C++ Code (xxd -i)