GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   unix command.. quick question (https://gfy.com/showthread.php?t=127962)

pornJester 04-24-2003 02:39 PM

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.

CGI 04-24-2003 02:47 PM

find /directory/start/path -type d -exec chmod 777 {} \;

pornJester 04-24-2003 03:06 PM

Quote:

Originally posted by CGI
find /directory/start/path -type d -exec chmod 777 {} \;
awesome, thanks :thumbsup

CGI 04-24-2003 03:10 PM

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