I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this:
chown username:groupname .
...expecting that it would affect all the files in the current directory, but instead only affected the directory that I am in (which is the opposite of what I want to do). I want to change it on all the files without affecting the current directory that I am in.
How can I chown and chmod all files in current directory?
man chownandman chmodeasily answer your question. – Shi Aug 15 '12 at 21:08chmod. It is builtin to the shell. Also reading documentation on globbing sucks the life out of you (I spent way to much time figuring out all the zsh's features). – djf Aug 15 '12 at 21:27chown -R user:group .– Shi Aug 16 '12 at 20:05