2 ms·
Just a note -- despite the title, the article eventually presents a nuanced view and points out that "dd" has some uses. > If an alias specifies -a, cp might t
by bee_rider 5y ago
Just a note -- despite the title, the article eventually presents a nuanced view and points out that "dd" has some uses.
> If an alias specifies -a, cp might try to create a new block device rather than a copy of the file data. If using gzip without redirection, it may try to be helpful and skip the file for not being regular. Neither of them will write out a reassuring status during or after a copy.
> dd, meanwhile, has one job*: copy data from one place to another. It doesn’t care about files, safeguards or user convenience. It will not try to second guess your intent, based on trailing slashes or types of files.
> However, when this is no longer a convenience, like when combining it with other tools that already read and write files, one should not feel guilty for leaving dd out entirely.