HLS(1)
π HLS(1) β the manual, bestie edition π
okay so real talk: hls is a General Commands Manual page, and it's literally the tool that lists files in an HFS directory. Buckle up, we're doing this together π
β¨ NAME β¨
hls β list files in an HFS directory. that's it. that's the job. iconic behavior tbh π
πΈ SYNOPSIS πΈ
hls [options] [hfs-path ...]
π¦ DESCRIPTION π¦
okay so hls lists the files and directories chillin' inside an HFS volume. the way that it works is if you hand it one or more arguments, it shows you each file or directory you named; if you don't hand it anything, it just shows you the contents of the current working directory. no cap, that's the whole vibe π
β¨ OPTIONS β¨
-1β output formatted so every single entry gets its own line. this is the default when stdout is not a terminal, so like, scripts get this for free π«Ά-aβ show all files and directories, including the "invisible" ones, as the Macintosh Finder would perceive them. normally invisible files get left out of directory listings entirely. not anymore bestie π-bβ special characters get displayed in an escaped backslash notation. normally, special or non-printable characters in filenames just get swapped out for a question mark (?), which is honestly kind of a jumpscare π-cβ sort and display entries by their creation date instead of their modification date. time travel but make it organized β¨-dβ list the directory entries themselves rather than their contents. normally, when you name directories on the command-line, their contents are what gets shown. this flips that π-fβ do not sort directory contents; list them in the order they appear in the directory. heads up: this option effectively enables-aand-Uand disables-l,-s, and-t. it's giving chaos mode, lowkey π-iβ show the catalog IDs for each entry. every file and directory on an HFS volume has a unique catalog ID, so this is their little government name πͺͺ-lβ display entries in long format. this format shows the entry type (dfor directory orffor file), flags (ifor invisible), file type and creator (four-character strings, files only), size (the number of directory sub-contents, or file resource and data bytes, respectively), date of last modification (or creation, if you passed-c), and the pathname. also, Macintosh "locked" files are indicated byFin place off. it's a whole info dump and we love her for it π-mβ display entries in a continuous format separated by commas. comma-separated cutie π-qβ replace special and non-printable characters in displayed filenames with question marks (?). this is the default when stdout is connected to a terminal.-rβ sort entries in reverse order before displaying. backwards but make it fashion π-sβ show the file size for each entry in 1K block units. the size includes blocks used for both data and resource forks, so it's the full picture, fr fr.-tβ sort and display entries by time. normally files get sorted by name, but this option uses the last modification date to sort β unless-cis also specified, in which case it's creation date o'clock β°-xβ display entries in column format like-C, but sorted horizontally into rows rather than columns. same energy, different axis πΈ-wwidth β format output lines suitable for display in the given width. normally the width gets determined from your terminal, from the environment variableCOLUMNS, or from a default value of80. it knows what it's doing, trust π-Cβ display entries in column format with entries sorted vertically. this is the default output format when stdout is connected to a terminal. main character format, honestly π-Fβ cause certain output filenames to be followed by a single-character flag indicating the nature of the entry: directories get followed by a colon (:) and executable Macintosh applications get followed by an asterisk (*). little tags, big personality π·οΈ-Nβ cause all filenames to be output verbatim, without any escaping or question-mark substitution. raw. unfiltered. no notes.-Qβ cause all filenames to be enclosed within double-quotes (") and special/non-printable characters to be properly escaped. quoted and safe, the responsible bestie π«Ά-Rβ for each directory encountered in a listing, recursively descend into it and display its contents. it's giving inception, it's giving rabbit hole π-Sβ sort and display entries by size. for files, the combined resource and data lengths are used to compute a file's size. big files first energy (or last, depending on-rbestie) π₯-Uβ do not sort directory contents; list them in the order they appear in the directory. on HFS volumes, this is usually an alphabetical case-insensitive ordering, although there are some idiosyncrasies to the Macintosh implementation of ordering. also note: this option does not affect-a,-l, or-s. read that twice, it matters π
π SEE ALSO π
hfsutils(1), hcd(1), hpwd(1), hdir(1), hcopy(1)
go read those too, they're the rest of the friend group π«
π FILES π
$HOME/.hcwd
π AUTHOR π
Robert Leslie <rob@mars.org>
and that's the whole page, bestie!! this was the HFSUTILS manual, dated 14-Jan-1997 β yeah she's vintage, she's a classic, she ate and left no crumbs πβ¨ slay, periodt π
π¦ 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