[kanchilug] 1D1C - hd

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 25 Aug 2022 06:00:00 +0530

hd - hd or hexdump is used to filter and display the specified files, or
standard input
       in a human readable specified format

$ cat dummy.txt
this is ubuntu linux
this is centos linux
this is arch linux

one-byte octal display
$ hexdump -b dummy.txt

one-byte character display
$ hexdump -c dummy.txt

canonical hex + ASCII display
$ hexdump -C dummy.txt

Two-byte decimal display
$ hexdump -d dummy.txt

Two-byte octal display
$ hexdump -o dummy.txt

Two-byte hexadecimal display
$ hexdump -x dummy.txt

Hexdump had the option of deciding a specific number of bytes from a file
to hexdump
$ hexdump -s 2 -c dummy.txt

hexdump to display all input data
$ hexdump -v -b dummy.txt



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - hd - Dhanasekar