Skip to content

Instantly share code, notes, and snippets.

@bil9000
Created March 2, 2021 02:55
Show Gist options
  • Save bil9000/d38a1a757d698b5b7524b51a41c8a8a1 to your computer and use it in GitHub Desktop.
Save bil9000/d38a1a757d698b5b7524b51a41c8a8a1 to your computer and use it in GitHub Desktop.
Recursively Lock Or Unlock Files and Folders
I have liberated this next copy and paste from [tinyapps.org](https://tinyapps.org/blog/200912130700_lock_unlock_files_recursively_os_x.html) oh, who had in turn liberated it from someobdy else. ButI'm going back after one query, if you want to dig down into the origin story of the the locking or unlocking scripts, there is only so much I can do for you. Fly away and be free!
uchg is to lock the folder (think unchanged)
nouchg is the oppostie (no think unchanged)
```
chflags -R uchg directory
chflags -R nouchg directory
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment