4 ms·
I've been told before that `od' is the most portable, although I prefer xxd in virtually all situations.
by shabble 13y ago
I've been told before that `od' is the most portable, although I prefer xxd in virtually all situations.
- ilikepi 13y agoI've known about 'od', but I've always used 'hexdump' instead. Amusingly, I just noticed that they are literally the same (hard-linked) binary on OS X 10.6, even though the arguments differ somewhat. The man pages states that 'od' is part of POSIX, which aligns with your comment about portability.
- jasomill 13y agoThis is also a common UNIXism: programs that behave differently depending on what they're called as. Another example is gzip (gunzip = gzip -d, gzcat = gzip -dc).