3 ms·
Show HN: The File You Didn't Know You Needed
To prevent against accidentally deleting the content of an important folder when doing rm -rf * create a file named -i. This way rm command will prompt before proceeding to delete everything.
Here is how you create a file with that weird name:
touch -- -i
-i is the name of the file when * is expanded -i is passed to the rm command as a flag. You should probably do this in your ~ now.