By default (at least in Ubuntu 9.04) if you use the
.* wildcard in Bash, it will match the
. and
.. entries as well. I've seen not just once users executing this in a directory:
rm -r * .*
Their intention was to remove all entries in the current directory. However since the default shell is bash and by default the
.* matches
.. too,
the command will traverse up in the directory tree ... at least as far as it can go with the user's privileges.
Recent comments
1 day 14 hours ago
1 day 14 hours ago
3 days 19 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
1 week 6 days ago