Use this to find all locked files. This example searches the entire HD but you can navigate to a path if necessary.

find / -flags uchg

Use this to find and unlock all locked files.

find / -flags uchg -exec chflags nouchg {} \;

 

Other useful chflags commands:

sudo chflags uchg /path/to/file

sudo chflags nouchg /path/to/file

Keith Mitnick

As Chief Operating Officer of HCS Technology Group, Keith plays a pivotal role in driving operational excellence and technical innovation.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk