Directories, Files, and Path Names
In Unix, folders are called directories. Files are still files. The location of a file is called its path. The very top folder (or bottom folder depending on how you think about it) is called the root directory. This root directory is the one you see when you double click your hard drive. It contains the Applications, Library, System, and Users folders.
Here is how you refer to various parts of the file system in Unix:
- The forward slash (
/) refers to the root folder. - A path name beginning with a slash (
/) is an absolute path. For example, the path/Applicationsrefers to the Applications folder, no matter where you currently are. To see a list of Applications, typels /Applications. It doesn’t matter where you currently are because it’s an absolute path. - A path name beginning without a slash is a relative path. For example, if you are currently in your Home folder, the path
Documentsrefers to the Documents folder under your Home folder. While in your Home folder, typels Documentsto see a list of your documents. If you were to typels Applications(without the slash), you’d likely see an error since you (probably) don’t have an Application folder inside your Home folder, and the path is relative to where you currently are. - The tilde (
~) refers to your Home folder. (It’s also an absolute reference, despite not having a preceding slash.) To see what’s in your Home folder, typels ~. To see your own Documents typels ~/Documents. It’s an absolute reference that works from anywhere. For me, the path/Users/richard/Documentsis the same as~/Documents. - You can use the tilde with someone else’s username to refer to their Home folder. For example, to see what’s in Mary’s Home folder, type
ls ~maryor to see what’s in John’s Documents folder, typels ~john/Documents.
You should now be able to refer to any path on your hard drive. Did I leave anything out?


The term shell can refer to any interface to a computer (in the sense that the shell is the outermost part, the part people interact with.) But more commonly, shell is another way of saying “command line interface” or
As long as you’re going to start using Terminal regularly, you might as well make it at home. You can drag the Terminal to your Dock for easy access. Also, you might want to change the look of Terminal by going to Window Settings in the Terminal menu. Switch the drop down menu to Color, then change the color to your liking. I personally like White on Black with a little transparency, but you can do whatever you like.
Unix is a computer operating system that was developed in the 60′s and 70′s at AT&T’s Bell Labs. It was designed as a robust, multi-user, multi-tasking operating system and has historically been popular on large mainframe systems at universities and governments.
I’m excited to launch FreeMacUnix, a website all about using Unix on a Mac. You may have noticed the Terminal application in your Utilities folder and wondered what it was. Through Terminal you can access the powerful