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: 3.133.133.39
To prevent spam please submit by clicking the kitten: