How to lock and unlock a folder/file in MacOS from terminal (so that general program can't modify it Get link Facebook X Pinterest Email Other Apps November 23, 2022 Launch Terminal. sudo chflags uchg [file path] Press Enter. Unlock: chflags nouchg [file path] Get link Facebook X Pinterest Email Other Apps