HATTRIB(1)
π HATTRIB(1) π
okay bestie, welcome to hattrib, a lil member of the hfsutils squad β¨ she's the one whose whole job is changing HFS file or directory attributes. type, creator, invisible, locked, blessed β she does the whole glow-up. let's get into it π
β¨ SYNOPSIS β¨
hattrib [-t TYPE] [-c CREA] [-|+i] [-|+l] hfs-path [...]
hattrib -b hfs-path
two whole forms, two whole vibes. pick ur fighter π
πΈ DESCRIPTION πΈ
so hattrib lets you alter HFS file attributes. that's the whole gig. here's the tea on form one π
- the MacOS-defined type and creator attributes get set with the
-tand-cflags respectively (yes bestie, in that order, type then creator, they're a matching set π«Ά) - a file's invisible flag? set it with
+i, clear it with-i - a file's locked flag? set it with
+l, clear it with-l
and here's the part where you gotta pay attention fr fr: every single file you name on the command line gets those attributes, no questions asked β doesn't matter what attributes it already had, they're getting overwritten, no cap π. BUT β any attribute you didn't mention on the command line is left completely unchanged. so it's a targeted makeover, not a full reset β¨
now. form two π
in the second form you pass a single HFS pathname that points at a folder, using the -b option, and that folder becomes "blessed" as the MacOS System Folder. iconic behavior honestly π
for that blessing to actually be useful, the folder should contain valid Macintosh System and Finder files. like, bless a folder with nothing in it and... girl, what are we doing π
lowkey important note: the locked attribute and the "blessed" attribute have little consequence to hfsutils. so don't come crying to hfsutils about them, she simply does not care π
π¦ SEE ALSO π¦
go read those too, bestie, they're part of the family π«Ά
π FILES π
$HOME/.hcwd
that's where she keeps her current working directory lore β¨
π AUTHOR π
Robert Leslie <rob@mars.org>
we stan π
and that's the whole page!! this one's from the <strong>HFSUTILS</strong> manual, dated <strong>30-Aug-1998</strong> β an absolute vintage queen, older than most of us but still serving β¨π mwah, bye bestie!! ππ
π¦ where this page comes from
- debian bookworm: hfsutils 3.2.6-15
- fedora 43: hfsutils 3.2.6-53.fc42 Β· GPL-2.0-or-later
- fedora 43: hfsutils 3.2.6-57.fc43 Β· GPL-2.0-or-later
- fedora 44: hfsutils 3.2.6-53.fc42 Β· GPL-2.0-or-later
- fedora 44: hfsutils 3.2.6-57.fc44 Β· GPL-2.0-or-later
- nixos 26.05: hfsutils 3.2.6
- nixpkgs unstable: hfsutils 3.2.6
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: hfsutils 3.2.6-bp160.1.12 Β· GPL-2.0-or-later
- ubuntu jammy: hfsutils 3.2.6-15build2
- ubuntu noble: hfsutils 3.2.6-16
- ubuntu questing: hfsutils 3.2.6-16ubuntu1
- ubuntu resolute: hfsutils 3.2.6-16ubuntu2
- ubuntu stonking: hfsutils 3.2.6-16ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms