Does "chmod 777 .* -R" chmod parent directories (..) recursively?
|
feedback
|
migrated from stackoverflow.com Jan 3 '10 at 21:13
This question came from our site for professional and enthusiast programmers.
|
Yes. (Learned it the hard way.) | |||||||||||||
feedback
|
|
yes. 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
furthermore, | |||||||||||
feedback
|
|
Use .??* instead. | |||||
feedback
|
chmod -R 777 ., if you want to only.prefixed directories viafind . -maxdepth 1 -type d -name '.*'this would still include., also the.*expands based upon your$SHELL, not all shells will expand.*to.and... – Darren Hall Jan 3 '10 at 21:21