Computer Hope
Software => BSD, Linux, and Unix => Topic started by: doncamillo on April 26, 2008, 03:35:59 AM
-
Is it possible to change chmode of a spesific file but in different folders?
change all x.php in /home folder. There are lots of x.php and i dont want to change chmod one by one.
is it possible to do this with one shot?
tnx
-
find /home -type f -name "X.php" -exec chmod 777 "{}" \;
-
Thank you very very much. I am searching this command for days. And it worked.
what if change a permision of a FOLDER not file?
How can we do this?
-
Thank you very very much. I am searching this command for days. And it worked.
what if change a permision of a FOLDER not file?
How can we do this?
check the man page of find command. look for -type explanation.
-
Tnx again.
"-type d"
:)