Demo image Demo image Demo image Demo image Demo image Demo image

chmod

  • Sunday, March 21, 2010
  • zana991
  •  Is there a way where I can give chmod 777 permission to all files in a given folder
    so I do not have to type chmod 777 filename for each file. I have about 100 plus
    files in a given folder that needs chmod 777 permission. Is there a better way?


    chmod 777 *
    for i in `find . -maxdepth 1`; do chmod 777 $i; done
    chmod 777 `find . -maxdepth 1`

    Or recursivly

    chmod 777 -R .
    for i in `find . `; do chmod 777 $i; done
    chmod 777 `find . `

    0 comments: