Hacker News new | past | comments | ask | show | jobs | submit login

rm -i is your friend



I find rm -i to be unusable because it is so annoying when you are deleting more than a couple files. It would be nice if rm -I (notice the capital) would first determine all of the files to remove, print them out and then ask if you want to delete all of those files. Instead it just says "rm: remove all arguments?" which is clearly much less annoying than having to type y for every file, but it is also mostly useless.


Zsh almost does this when using rm * :

  rm /tmp/*
  zsh: sure you want to delete all the files in /tmp [yn]?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: