Access the Root Directory in Mac OS X in 4 Ways Quickly

Jan 17, 2013 - 7 Comments

Mac 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 OS X have started to hide the root folder from users because most users simply don’t need to access the root subdirectories. If you renamed Macintosh HD to something else, you’ll need to replace your name throughout the walkthrough here when necessary.

1: Use the Go To Folder Keyboard Shortcut

Go To Folder is easily one of the most useful keyboard shortcuts in the 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)

Go to the Root Directory / in Mac OS X

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

Add Root Folder to the Finder Sidebar in Mac OS X

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 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?

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:

Full listing of the root directory in Mac OS X Finder

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.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks

7 Comments

» Comments RSS Feed

  1. Mikofox says:

    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.

  2. Mikofox says:

    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.

  3. Manti Te'o says:

    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.

  4. Juan Perez says:

    unix?

    Unix should always be capitalized, IMHO.

    Thank you

  5. Roy says:

    UNIX is trademarked as UNIX (all in uppercase).

  6. Aberto I says:

    UNIX is capitalized, but it is still 0.00000001% of users :D :D

  7. John says:

    Thanks this was a big help!

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates