HCD(1)

πŸ’– HCD(1) β€” change working HFS directory πŸ’–

okay bestie, so this is hcd, from the General Commands Manual section of the manual pages, and it's literally the cutest little navigator for your HFS volume. let's get into it ✨


🌸 NAME 🌸

hcd β€” change working HFS directory


πŸŽ€ SYNOPSIS πŸŽ€

hcd [hfs-path]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: hcd is what you use to change the notion of the "current working directory" for the current HFS volume. that's it, that's the whole job, and it eats. πŸ’…

and like, once you've done that? all subsequent HFS commands will interpret filenames relative to this directory, unless absolute pathnames are used. so it's giving main character energy for your whole session, fr fr.

if the argument pathname is omitted, hcd will change to the root of the current volume. no argument, no problem, straight to the top of the tree 🫢


🌈 SEE ALSO 🌈

go check those out too, they're the rest of the friend group πŸ’œ


πŸ“ FILES πŸ“

  • $HOME/.hcwd

πŸ’€ BUGS πŸ’€

okay so, gentle heads up, and this one's important:

although absolute pathnames can be given to hcd, the full pathname must match the current volume; it cannot specify a path for a different volume.

so like, no trying to teleport to a whole other volume, bestie, that's not the move 😭

use hvol or hmount to change the current volume. (each volume has its own independent current working directory, iykyk β€” they don't share, they're all doing their own separate thing 🌸)


πŸ‘‘ AUTHOR πŸ‘‘

Robert Leslie <rob@mars.org>


and that's the whole page, angel πŸ’– this one came from HFSUTILS, dated 13-Jan-1997, and honestly? iconic for its time, still serving. now go change some directories. slay βœ¨πŸŽ€πŸ¦‹