A easy way to view binary file in hex in linux

If you use vim, that is pretty easy, you can

vim your_binary_file

click "Esc", and then type ":%!xxd"; type ":%!xxd -r" to return to normal mode.