Command Linux To Chmod File Only Or Directory Only Recursively In All Subdirectory
This command can chmod file only or directory only recursively. Here the code:
sudo su
#this command to chmod file only recursively
find . -type f -exec chmod 644 {} \;
#this command to chmod directory only recursively
find . -type d -exec chmod 755 {} \;
Good Luck !!!
#this command to chmod file only recursively
find . -type f -exec chmod 644 {} \;
#this command to chmod directory only recursively
find . -type d -exec chmod 755 {} \;
0 comments:
Post a Comment