alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 11 months agoLinux Best Practiceslemmy.worldimagemessage-square22fedilinkarrow-up125arrow-down13cross-posted to: 196@lemmy.blahaj.zone
arrow-up122arrow-down1imageLinux Best Practiceslemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 11 months agomessage-square22fedilinkcross-posted to: 196@lemmy.blahaj.zone
minus-squarekoper@feddit.nllinkfedilinkarrow-up2·edit-211 months agoIt’s slightly different. Your shell will see the /* and replace it with all the directories under /, e.g. /bin /dev /etc /home etc. So the actual command that runs is rm -rf /bin /dev /etc /home etc.
It’s slightly different. Your shell will see the
/*
and replace it with all the directories under /, e.g./bin /dev /etc /home
etc. So the actual command that runs isrm -rf /bin /dev /etc /home
etc.