Re: chmod 777 to all files



On Tue, 28 Sep 2004 16:55:02 -0400, Patel, Nilesh M 
[...]
> Is there a way where I can give chmod 777 permission to all files in a given folder 
> so I do not have to type chmod 777 filename for each file. I have about 100 plus 
> files in a given folder that needs chmod 777 permission. Is there a better way? 
> If not there goes my weekend.

Hehe, 
    Looks like your due for the good old `man bash', brace yourself,
its quite a read
but it wont take you all weekend ;-)

Cheers,
                            -Tristan

chmod 777 *
for i in `find . -maxdepth 1`; do chmod 777 $i; done
chmod 777 `find . -maxdepth 1`

Or recursivly

chmod 777 -R .
for i in `find . `; do chmod 777 $i; done
chmod 777 `find . `



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]