3 ms·
uhh, hmm. For thirty years or so I've lived by these two (shell immaterial): mv='mv -i' rm='rm -i' simple enough to add /bin/ to the command if I really mean
by downut 3y ago
uhh, hmm. For thirty years or so I've lived by these two (shell immaterial):
mv='mv -i'
rm='rm -i'
simple enough to add /bin/ to the command if I really mean it. That fixes the pipe issue too. I've had new to linux new hires go 'uh well I shoulda done that thanks I've done it now' more than once.
- adr1an 3y agoYou can also do backslash to skip the aliases, e.g. \rm wouldn't ask for confirmation (skip the -i)
- PurelyApplied 3y agoOr quote-wrap `'rm'`.