Viewing the hex codes of a file
Linux has a cool utility called hexdump that will output a file in hex mode. Great for looking at the raw values in a UTF-8 text file.
hexdump -C /tmp/foo.txt
Vim also ships with a xxd
binary that will output a file in a hexdump style, as well as including the ASCII representation.
hexdump /tmp/foo.txt