chflags
Created by demonduck
Description
The chflags utility modifies the file flags of the listed files as specified by the flags operand.
Created | Tactics | Tags |
---|---|---|
2024-07-25 | Defense Evasion | finder |
Paths
/usr/bin/chflags
Use Cases
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