5 ms·
try rm -rf somedir/ vs rm somedir/ -rf Linux (the former) allows me to be lazy while MacOS (the latter) forces me to hit crtl-a and insert -rf.
by noobermin 10y ago
try
rm -rf somedir/
vs
rm somedir/ -rf
Linux (the former) allows me to be lazy while MacOS (the latter) forces me to hit crtl-a and insert -rf.
- loeg 10y agoGNU rm (coreutils) vs BSD rm.
- aorth 10y agoI will never get used to the trailing slash on source arguments in BSD cp (that copies directory contents rather than the directory itself)! The first thing I do on an OS X machine is install GNU coreutils.
- loeg 10y agoMe either. I've also got a habit of adding '-rf' as the last argument to 'rm' so I can safely tab complete things in my home directory without a mistaken "enter" press nuking everything.
- seschwar 10y agoI'm used to that from rsync. I find it quite handy.
- loeg 10y agoThis may be why I never found rsync comfortable.
- deleted 10y ago[deleted]
- noobermin 10y agoMajor correction, the former is MacOS and the latter is Linux allowed (options can be before positional arguments).
- deleted 10y ago[deleted]