4 ms·
You could though probably make a wrapper that only kicks in when dd is called from the command line (as opposed to, say, from a script or some GUI program) and
by TacticalCoder 6y ago
You could though probably make a wrapper that only kicks in when dd is called from the command line (as opposed to, say, from a script or some GUI program) and asking a confirmation "Do you really want to overwrite your main drive?", without breaking backward compatibility?
I have written a few wrappers like that on my own system preventing me from making a few common mistakes of mine (like scp'ing a file locally to a filename ressembling an IP address instead of on a remote server ;)
- Hello71 6y agosure, but it'd be less confusing to just make it a new command. you could add features like invoking lsblk with a sensible set of flags.
- jschwartzi 6y agoExcept the whole point of the wrapper is to protect people who are ignorant of alternatives from overwriting their main system drive by carelessly typing /dev/sda when they mean /dev/sdb on their local system. So making a new command and socializing it doesn't actually improve the situation at all.
- pilsetnieks 6y agoWhen it's a new command it doesn't solve the problem of newbies and 3 decades of old tutorials, which was the comment that started this thread.