That and typing rm .*
is a bad thing, because unix considers the current directory is called .
and by calling .*
rm is also picking up everything in your current directory (eg. YourImportantStuff is being picked up as ./YourImportantStuff). This effect can also run away and nuke your whole disk, because the previous directory is denoted as ..
which is also included in the wildcard you entered.
This happens to alot of users who are use to the GNU fileutils rm (the one included with most Linux distros), because it has built-in safeguards for such a situation and quietly only removes what the user probably expected and not everything your username has the permissions to delete...
Embarrassing, as it is to admit I once fell for this one too, so don’t feel that badly.