16

Day 2 of having to use linux at work and I almost nuked the /etc folder.

what a good start

Comments
  • 5
    Now I get why people call Windows idiot-proof, Windows asks you 20 times if you're sure you want to do it and puts it in the recycle bin, Linux is just "rm -rf? sure thing fam".
  • 2
    install "trash-cli". It will put it in the trash, and you can restore things easily.
  • 3
    @sudo-woodo As root, in a terminal. Most usual people won't go there or even find it and know how to do that.

    Also, Linux does ask but this command contains the 'f' parameter which overrides that choice by default (force).

    Isn't it common sense to check what the fuck you're about to remove?
  • 7
    Hey, you disengaged all safeguards by attaching -f. Don't complain now.
  • 1
    @linuxxx I wanted to delete an entire subfolder inside /etc and realized I forgot to type the rest of the path just before hitting enter, hence the almost in almost nuked. Definitely going to be more cautious from now on though.
  • 0
    @sudo-woodo Yeah I've nearly done that 😄 usually I don't use the 'f' flag on prod systems!
  • 4
    @sudo-woodo there is even a command to shout positivity into the void.

    sudo yes > /dev/null &
  • 0
    Just in case anyone is wondering this absolutely makes your CPU go at 100%.
Add Comment