Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sudo rm -rf /var
instead of
sudo rm -rf var
It was a long day...
What I learnt from this incident: sudo apt install safe-rm -
safe-rm is nice.
What I use on my laptop & desktop, is an alias from rm to "gio trash", which is the default ubuntu-distro-family implementation of the desktop trashcan. -
Interestingly, my colleague had formed a folder named "*" by mistake. In order to delete, my colleague typed rm -rf *
It was taking a long time and my colleague kept on wondering why it was taking so much time until I came into the room and stopped it.
Thankfully, we were able to recover the data. -
irene33945yIf you have ever deleted node_modules from an angular project. Also don’t delete that folder from Windows explorer because it can lock your machine for hours on a complex project.
Related Rants
Did happen to me 😂
joke/meme
rm -rf