Linux – How to view the contents of .dat file in linux


I have a file with .dat extension how can i view the contents of the file in hexa ? mean if i open the file i should be able to see the contents in hex format, can this be done using vim editor. I have installed tnef but when i try opening this dat file it says "Seems not to be a TNEF file"

Best Answer

Some common Linux utilities for viewing hex dumps are:

  • xxd
  • hexdump
Related Question