chflags

From RaySoft

The chflags utility modifies the file flags of the listed files as specified by the flags operand.[1]

Documentation

Syntax

chflags [PARAMETER ...] FLAG [...] FILE [...]

Parameters

-R
Change the file flags for the file hierarchies rooted in the files instead of just the files themselves.

Flags

The flags are specified as an octal number or a comma separated list of keywords. The following key-words keywords words are currently defined:

hidden
Set the hidden flag.
uchg, uchange, uimmutable
Set the user immutable flag (owner or super-user only).
NOTE:
Putting the letters no before or removing the letters no from a keyword causes the flag to be cleared.

Examples

Un-hide the Library folder
chflags nohidden "${HOME}/Library"

References

  1. man 1 'chflags'