← All Binaries

chflags

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

Path
/usr/bin/chflags
Author
demonduck
Created
2024-07-25

Example Use Cases 2

Hide a file #

Add the hidden flag to a file or directory to prevent it from being visible in Finder and Terminal.

chflags hidden ~/evil

Remove hidden flag #

Remove the hidden flag to a file or directory to make it visible in Finder and Terminal.

chflags nohidden ~/evil

Detections

Resources