LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   changing permissions... (https://www.linuxquestions.org/questions/linux-general-1/changing-permissions-82429/)

ashesh 08-15-2003 11:00 PM

changing permissions...
 
How can I shange the permissions of all the subfolders and files of a given folder?

I copied a folder from a CD and there are 100s of files and folders in that which don't have execute permissions. I would like to change the permissions of all the contents in one go...

Thanks in advance...

BajaNick 08-15-2003 11:03 PM

Check this out
http://www.linuxpowered.com/html/editorials/file.html

leonscape 08-15-2003 11:04 PM

chmod -R u+x /the/file/directory/*

-R mens recursive so it will go into any sub-directories.

u+x means add execute to user. the * is the wildcard meaning everthing in that folder.

if your stuk on a command enter the command followed by --help.

ashesh 08-15-2003 11:32 PM

Hi Leonscape...

Thanks for the command... sad that i couldn't think of using the -R flag...

ashesh


All times are GMT -5. The time now is 03:51 PM.