When I run each command, I get the following output:
root@ubuntu:~# hd test.txt
00000000 31 32 33 34 35 36 0a |123456.|
00000007
root@ubuntu:~# hexdump test.txt
0000000 3231 3433 3635 000a
0000007
But both commands are looking at the same location on the disk:
root@ubuntu:~# which hd
/usr/bin/hd
root@ubuntu:~# ls -l /usr/bin/hd
lrwxrwxrwx 1 root root 7 Jul 6 03:13 /usr/bin/hd -> hexdump
Can anyone tell me why the results I get are different from each other?