Click to See Complete Forum and Search --> : How do I change the CHMOD of several files at once


boredcrazy
03-28-2001, 12:40 AM
I want to change the CHMOD of all the files in a subfolder. But with corel linux's File Manager, I can only change the settings of files, one at a time...

Hoe can I do an entire folder at once? Is there a command that I can type into the console?

mt_charlie
03-28-2001, 02:59 AM
Since you are already in the subfolders, what kind of access would you want the files to be?

You could type in this command at the prompt: chmod 644 *. This will enable all the files in your folder to be read by everyone, but you have read and write access.

Or if you some files that end with "lst", you could type in: chmod 644 *lst.

Hopes this help.

mt_charlie
03-28-2001, 03:02 AM
Oops, I forgot to tell you that you would need to open a terminal session or xterm session in order to do this.

Again, hope this helps.

SCuSI
03-28-2001, 07:06 AM
chmod -R a=rw *
or
chmod -R a=rw /location/of/directory

man chmod and chmod --help will give you other options.

bdg1983
03-28-2001, 08:53 AM
man chmod and chmod --help will give you other options

Exactly. Always a good to idea to get in the habit of trying the man pages first. In most cases they will tell you what you need to know.

brasso
03-28-2001, 11:59 AM
Exactly. Always a good to idea to get in the habit of trying the man pages first. In most cases they will tell you what you need to know.



Now if they could just give *EXAMPLES* too, like dirty-word old DOS does. And to think I used to think those DOS Help files were hard.
Earl