Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
gronostaj159114dsudo rm -rf /var
sudo rm -rf var
It was a long day...
What I learnt from this incident: sudo apt install safe-rm
mk3d371414dfind / -delete
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.
Liz374313dDont think it kills running processes
irene189412dIf 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.