Hi! On Sun Dec 14, 2003 at 01:15:01PM +0100, Stephen Turner wrote: > Anyway, i have been using chmod. I wanted to change all my files to > 775 in one folder. I used the -R addition. But it did not work. > > It gives me the message 'too few arguments'.
So you gave it too few arguments ;-). chmod always wants the FILE argument: Usage: chmod [OPTION]... MODE[,MODE]... FILE... or: chmod [OPTION]... OCTAL-MODE FILE... or: chmod [OPTION]... --reference=RFILE FILE... If you are in the directory where you want to change all subdirectories you just type: [EMAIL PROTECTED]:~/foo$ chmod -R 775 . where . means "current directory". So chmod starts to walk down to every subdir from the current working directory on. But I wonder why you want ALL files AND directories change to 775? Do you really want all files executable? Or just the directories? This could be done through following trick: [EMAIL PROTECTED]:~/foo$ find . -type d -exec chmod 775 {} \; And to change all files to 664 (without exec flag): [EMAIL PROTECTED]:~/foo$ find . -type f -exec chmod 664 {} \; So long Thomas -- .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner <djmaecki at ull dot at> `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/
pgp00000.pgp
Description: PGP signature