File Permission of The Sh Files


Gabriel9999
#1
I have a directory where a lot of bash script or sh file exist. I want to change their permission to the 770 with the chmod command. How can i accomplish that? Thanks.
 
samueltarcin999
#2
Best way is using find command with the-exec option where you can use chmad.
$ find /my/bashfiles/ -type d -name *.c -exec chmod 770 {} \;

read below: https://www.poftut.com/set-permissio...folders-linux/
 

Similar Threads

8