Hexdump: inaccurate output?
This is simple enough to explain, simply look at the following and see if you notice anything fishy:
Code:
toor@toor:~/Desktop/test$ hexdump test |
In the first invocation, the input has been read as 16bit integer words. The first character read is in the most significant byte and the second character is in the least significant byte.
In the second invocation, the input has been read as 8bit characters, as you would expect. |
All times are GMT -5. The time now is 03:58 PM. |