Sysop.Fr
Catégories

apache

awk

bash

charmap

date

echo

encoding

find

grep

hexdump

irc

iso3166

ls

mysql

od

openssh

printf

python

read

sed

seq

smpp

sort/uniq

tar

tr

ucp

Articles

Mémo de la commande hexdump

La commande hexdump permet d'afficher le contenu d'un fichier au format spécifié (hexadecimal, ...).

-cOne-byte character display
-CCanonical hex+ASCII display

1. Exemples

root@ubuntu:~# echo "ok" > fichier.txt
saturne:~$ hexdump fichier.txt
0000000 6b6f 000a
0000003

root@ubuntu:~# hexdump -c fichier.txt
0000000   o   k  \n
0000003

root@ubuntu:~# hexdump -C fichier.txt
00000000  6f 6b 0a                                          |ok.|
00000003