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


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.191.189.85
To prevent spam please submit by clicking the kitten: