Someone of our team wanted to recursively change the user permissions on all hidden directories in a users home directory. To do so he executed the following command:
cd /home/username
chown -R username:groupname .*
We were pretty surprised when we realized, that he actually recursively changed the permissions of all user directories in /home, because .* equals to .. as well. Would you have expected this behavior in Linux though?
Anyway, the correct command would have been this one:
cd /home/username
chown -R username:groupname ./.*