Access the Root Directory in Mac OS X in 4 Ways Quickly
Like other forms of unix, the root directory of Mac OS X is simply /, but from the Finder it also takes the name of your primary hard drive. By default that is “Macintosh HD”, and newer versions of Mac OS have started to hide the root folder from users because most users simply don’t need to access the root subdirectories. But of course, some Mac users do need to access and get to the root directory of their Mac, and that’s what we’re going to show you how to do here.
Note that if you renamed Macintosh HD to something else, you’ll need to replace your name throughout the walkthrough here when necessary.
4 Ways to Access the Root Directory of Mac OS
We’ll cover four different ways to access the root directory of MacOS, macOS, and Mac OS X. This applies to all versions of modern Mac system software.
1: Use the Go To Folder Keyboard Shortcut
Go To Folder is easily one of the most useful keyboard shortcuts in the Mac OS X Finder since you can jump anywhere instantly, and the root directory is no exception:
- Anywhere on the Mac desktop, hit Command+Shift+G, then type / and hit return to jump to root (Macintosh HD)
If you don’t need frequent access to the root directory, using the keyboard shortcut may make the most sense. Additionally, using the generic / path will always go to the root directory, even if someone renamed “Macintosh HD” to something else, making it universal across all Macs.
2. Drag & Drop “Macintosh HD” into the Finder Sidebar
Placing Macintosh HD into the Finder Sidebar Favorites list provides for frequent quick access and drag & drop support:
- Open a Finder window to any folder other than ‘All My Files’ and click on the titlebar, pulling all the way down to the computer name
- Drag “Macintosh HD” into the Finder sidebar
Now clicking on Macintosh HD will jump instantly to the root directory.
3: Show Hard Disks on the Desktop to Reveal “Macintosh HD”
For those who can manage to keep their desktops clutter-free, having constant quick access to root is possible by showing hard disks on the desktop:
- From anywhere in the Finder, pull down the Finder menu and choose “Preferences”
- Under the “General” tab check the box next to “Hard disks” to immediately show Macintosh HD (and any other connected hard drive)
Showing hard drives on the desktop was actually default behavior prior to the most recent versions of Mac OS X, but most users never leave their home directory for file access and so that became the new Finder window default instead, before finally leading to “All My Files” in the newest versions of Finder.
4: Get to / by Command Line
Anyone coming from a unix background will find this one obvious, but root directory access is always possible by using the cd command:
cd /
Another option is to use the command line and open to bring the root directory into the GUI through Finder:
open /
Subdirectories can also be launched through open by pointing at their given path.
Why Can’t I See /bin, /etc, /usr, /var, /private, and Other Unix Directory Structure Items?
macOS and Mac OS X leans on the cautious side and hides most root directory contents from the Finder by default. If you know what you’re doing and need to reveal everything and all root subdirectories (like ls -a / would show at the command line), you will need to set hidden files to be shown by the Mac OS X Finder. The directories and files deemed hidden by way of the chflags command or those that contain a period in front of the name will appear in light grey, but are accessible and navigable by the Finder anyway:
Do note the root directory of in a unix file system structure is basically the highest level of the filesystem hierarchy, and is completely different from the root user account, the latter of which provides high-level administrative access to a Mac.
Once you’re within the root directory of Mac OS, you’ll encounter many various hidden and visible folders and directories that make up the components of the operating system. If you want a bit more information on what these directories mean, you can read here which explains the Mac OS X directory structure a bit.
Thank you! That first shortcut is a savior!
Thanks this was a big help!
UNIX is capitalized, but it is still 0.00000001% of users :D :D
UNIX is trademarked as UNIX (all in uppercase).
unix?
Unix should always be capitalized, IMHO.
Thank you
My Mac just died. I am so sad. I loved that thing and we were going to be together forever.
Can I ever replace it? I think I will try a Surface tablet. Just to look at another Apple device would be too painful right now.
I have a sad spot on my butt for my woes.
In addition I was pleasantly surprised that it is still possible to run the old Classic Menu App in Mountain Lion. When installed, it is layered over the Apple Menu and can be used by Control-clicking the Apple to show the classy “Classic OS 9” hierarchical file menu. With Spotlight it may be mostly redundant now, but I still like the way one could flip down through folders and see their content and get to a specific folder or file. Plus it can put the Classic multicolored Apple back in the Menubar.
FinderPop is a neat System Preference that has an option to right-click anywhere in the empty space of the Menubar to show a list of Folders (that can be specified) in a hierarchical drop-out list, like one could do in the Classic OS. If one checks off “Show Invisible Items”, anything on your HD can be accessed with two clicks.
That’s beside its main use as a fast file archive utility.