Hacker News new | ask | show | jobs
by abarrak 3566 days ago
It's probably a good time to check if you have some safety against `rm -fr `.

Two days ago, I wanted to delete .git only, but accidentally as my fingers were accustomed with -fr , the command was `rm -fr * .git`. Rails server was running and some hope arose at the moment to just `lsof | grep` .. unfortunately that didn't work with me !

Ironically, all dot files have stuck as obvious :)

1 comments

> Ironically, all dot files have stuck as obvious :)

Those wouldn't have if you had set the following:

  shopt -s dotglob