System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

chflags

Change file or directory flags. More information: https://ss64.com/osx/chflags.html.
  • Set the hidden flag for a file:
    chflags {{hidden}} {{path/to/file}}
  • Unset the hidden flag for a file:
    chflags {{nohidden}} {{path/to/file}}
  • Recursively set the uchg flag for a directory:
    chflags -R {{uchg}} {{path/to/directory}}
  • Recursively unset the uchg flag for a directory:
    chflags -R {{nouchg}} {{path/to/directory}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.