Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Example?

I used dd a lot to burn images on USB. And that command is simple as expected.



I can't provide an example of something which doesn't exist, i.e. another program with dd's syntax.

I didn't say it wasn't simple. But it is very weird.


I think what people see as weird is `dd bs=1024 if=/dev/sr0 of=/home/jason/sr0.iso`, instead of `dd --block-size 1024 --in-file /dev/sr0 --out-file /home/jason/sr0.iso`. It's a bit non-standard, but it's really not bad.


What's weird about a syntax as straightforward as 'command name' 'input file' 'output file'? How exactly would you do it differently?


If it were `dd input output` or `dd input -o output` no one would be claiming it's unique and bizarre. However the actual syntax is `dd if=input of=output` which is unique and (arguably) bizarre.


Unique, yes, and I'd even go as far as to say it's somewhat out of place on a Unix-like OS, but I have an easier time remembering "infile, outfile, block/batch size" than, say, arguments for tar due to its simplicity. I wouldn't call it bizarre because it's extremely straightforward.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: