Sjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 6 days agoOh no! 🤦♂️sh.itjust.worksimagemessage-square54fedilinkarrow-up1962arrow-down19
arrow-up1953arrow-down1imageOh no! 🤦♂️sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 6 days agomessage-square54fedilink
minus-squarefloquant@lemmy.dbzer0.comlinkfedilinkarrow-up28·5 days agoI don’t understand the eagerness of most people to go nuclear by adding potentially dangerous arguments when not required. Use rmdir to remove a directory you expect to be empty, not rm -rf
minus-squarezarkanian@sh.itjust.workslinkfedilinkarrow-up1·5 days agoIt’s because they know how to use rm -rf, and they don’t know how to use rmdir. Honestly, I can’t think of a single time I’ve ever successfully removed a directory with rmdir. I always wind up using something else.
I don’t understand the eagerness of most people to go nuclear by adding potentially dangerous arguments when not required.
Use
rmdir
to remove a directory you expect to be empty, notrm -rf
It’s because they know how to use rm -rf, and they don’t know how to use rmdir. Honestly, I can’t think of a single time I’ve ever successfully removed a directory with rmdir. I always wind up using something else.