Conversions

De Linuxmemo.

Binaire (b)

Hexadécimal (0x)

  • commande hexdump

dump un fichier au format hexadécimal

hexdump fichier.txt
0000000 6574 7473 7420 7365 2074 6574 7473 740a
0000010 7365 2074 6574 7473 7420 7365 0a74 6574
0000020 7473 7420 7365 2074 6574 7473 000a     
000002d
  • commande xxd

convertit en représentation hexadécimale

xxd fichier.txt 
0000000: 7465 7374 2074 6573 7420 7465 7374 0a74  test test test.t
0000010: 6573 7420 7465 7374 2074 6573 740a 7465  est test test.te
0000020: 7374 2074 6573 7420 7465 7374 0a         st test test.

Octal (0)

  • commande od

dump un fichier au format octal

od fichier.txt 
0000000 062564 072163 072040 071545 020164 062564 072163 072012
0000020 071545 020164 062564 072163 072040 071545 005164 062564
0000040 072163 072040 071545 020164 062564 072163 000012
0000055
Outils personnels