alphacyberranger@lemmy.worldcake to Programmer Humor@programming.devEnglish · 2 years agoLinux Best Practiceslemmy.worldexternal-linkmessage-square19linkfedilinkarrow-up119arrow-down11
arrow-up118arrow-down1external-linkLinux Best Practiceslemmy.worldalphacyberranger@lemmy.worldcake to Programmer Humor@programming.devEnglish · 2 years agomessage-square19linkfedilink
minus-squarekoper@feddit.nllinkfedilinkarrow-up1·edit-22 years 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.