How to change the default line length for od and hexdump

binarycommand lineodUtilities

Is there any way to change the default line length for the od and hexdump commands? Can't see anything apropriate in the man pages.

Best Answer

od has the --width=N argument, which you can use to choose how many bytes per line, perhaps that's what you're looking for? hexdump has a -e FORMATSTRING which has promise, but I've never played too much with it.