On my machine I get the following output when I run these commands:$ echo foos > myfile$ hexdump myfile6f66 736f 000aThe output from hexdump is little-endian. Does this mean that my machine is little-endian, or does hexdump always use little-endian format?
Does hexdump respect the endianness of its system?
utilities;bsd;hexdump
Yes, the traditional BSD hexdump utility always uses the platform's endianness. Use hexdump -C (or od -t x1) to get more sensible byte-by-byte output.