you are viewing a single comment's thread
view the rest of the comments
[–] 45 points 3 years ago* (1 child)

Fun fact, rm -rf /* does not need --no-preserve-root. It will happily start as technically, according to the preserve root check, /* is not root as the target is not /

  • source
  • parent
  • hideshow 2 child comments
  • [–] 15 points 3 years ago*

    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 is rm -rf /bin /dev /etc /home etc.

  • source
  • parent