Sunday, November 8, 2020

Using icacls.exe command to change the permission of a folder

Use following command to change the permission of a folder:

 C:\folder> icacls FOLDER_NAME /grant user_id:(OI)(CI)(F)


Reference: https://stackoverflow.com/questions/38725364/icacls-permissions-not-applying-as-i-expect


F - Full Access

OI - Inherit file

CI - Inherit sub-folder


Sync multiple git repo at once

Use the following command in Linux will do the job:  ls -d RepoNames* | xargs -I{} git -C {} pull