One simple thing

Original author: HN
  • Transfer
If you want to protect an important directory from being deleted due to careless handling of the rm -rf * command, then create a file named -i, this will force rm to ask for confirmation:

touch ~/important-directory/-i

Also popular now: