51

When you do a 'sudo rm -r /*' instead of a 'sudo rm -r ./*' on ubuntu

PS : I just did it :'(

Comments
  • 1
    Does that really do anything?
  • 8
    I thought Ubuntu had a "this will delete everything, are you SURE?" Warning
  • 1
    @letmecode well most of my work is on github or on my cloud, so I didn't lost much.

    @jimmyscene Well on ubuntu gnome apparently no ^^ I'll see to set the validation message so it doesn't happen in the future again x)
  • 2
    @jirehstudios well i erased my ubuntu as well my windows part, I didn't set security properly aparently ^^
  • 0
    @BorisLaporte Can you back up anything running in RAM? 😂
  • 2
    @BorisLaporte warns for me on Ubuntu Gnome.
  • 1
    Ubuntu normally wouldnt let u du that
  • 3
    Well, at least you didn't delete root. 👍
    #thanks"nopreserveroot"
  • 0
    @linuxer4fun @flag0 it just depends on how you have your distro set up. My personal one doesn't prompt, while my university account does.
  • 0
    Ooouuu Remix
  • 0
    @jirehstudios
    When you do sudo rm -r /*
    You're deleting the root directory and everything in it recursively (the -r option). Though the asterisk isn't really needed in this case due to the -r.

    Don't mistake the root directory (/) with the root user home directory. (/root)
  • 0
    @QuantumAtom I know how it works, I just didn't believe that Linux will actually let you do it.
  • 1
    @jirehstudios
    Ohh okay. Sorry for the confusion.
    But yeah it'll generally let you. Except like people said above, Ubuntu will warn you. I'm sure theres a few other distributions that may warn you as well.
  • 0
    Why not `sudo rm -rf *` ? O.o
  • 1
    @azous

    bad habits, don't worry I don't do it any more ^^
Add Comment