hexdump is an utility that creates an hex dump
The hexdump application may be installed under different names such as:
apt-get install -y bsdmainutils
apt-get install -y util-linux
hexdump -C file | head -n 20