1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File Permission of The Sh Files

Discussion in 'Linux' started by Gabriel9999, May 17, 2019.

Tags:
  1. Gabriel9999

    Gabriel9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    18
    Likes Received:
    1
    Trophy Points:
    3
    I have a directory where a lot of bash script or sh file exist. I want to change theşr permission to be 770 with the chmod command. How can I accomplish that? Thanks.
     
  2. samueltarcin9999

    samueltarcin9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    16
    Likes Received:
    10
    Trophy Points:
    3
    Best way is using find command with the-exec option where you can use chmod.
    $ find /my/bashfiles/ -type d -name *.c -exec chmod 770 {} \;
    read below: poftut.com/set-permission-folders-subfolders-linux/
     
    Gabriel9999 likes this.

Share This Page