![]() |
unix command.. quick question
ok, quick question... I'm trying to chmod a directory and all it's subdirectories to 777 but I want to leave all the files at 755. Will this command do it?
find . -type d | chmod 755 directoryname directoryname being the one i'd like to start in. ?? Sorry, my unix is pretty rusty and any help would be appreciated. |
find /directory/start/path -type d -exec chmod 777 {} \;
|
Quote:
|
No problem :)
Just so you know, I actually went and tested that on both FreeBSD and Linux (the find command differs slightly between them) and it works just fine on both. |
All times are GMT -7. The time now is 02:00 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc