Does "chmod 777 .* -R" chmod parent directories (..) recursively?
migrated from stackoverflow.com Jan 3 '10 at 21:13
This question came from our site for professional and enthusiast programmers.
Use zsh (which does not match . or .. in ANY glob), or use .[^.]* .??* to match all hidden files. The first part of the glob matches any file that begins with a dot and has as its next character something other than a dot, thus avoiding . and .. The second part matches any file that starts with a dot and is at least three characters long.
To match all files other than . and .. hardlinks, use * .[^.]* .??* , or (on Z shell ONLY) . .*
The use of a recursive option(-r) with a wildcard(*) is almost always a bad idea.
if you were trying this:
which probably means you also did this first, before realizing it missed hidden files:
most likely what you wanted to do is