Lock And Unlock Your Files From The Command Line Using Finder

If you want to lock and unlock your files from the command line using Finder instead of using chmod there here are two aliases to do it:

alias flock=’chflags -R uchg’
alias funlock=’chflags -R nouchg’

Leave a Reply

Your email address will not be published. Required fields are marked *