OSX File System, Paths

Where are My Files Again?

Warning: this part is fairly OSX-centric… if you're on windows, let me know, and we can do a separate session.

First, Some Definitions

Directories

What's a directory (to simplify things, we can use "directory" and "folder" interchangeably)? →

Root

root (or just /) is:

Pathnames

What's a pathname? →

Let's Look at OSX's Directory Structure

Some Structure

Each operating system organizes their files and directories differently. OSX's file structure looks like this (it's similar to other UNIX based file systems):

More About the User's Directory

It's worth noting the directories nested under Users. They should seem familiar to you.

And Now… To Pathnames!

What's a Pathname?

A pathname is the general form of the name of a file or directory; it specifies a unique location in a file system.

Path Separator

A path separator is a character that's used to join together each directory in a pathname that contains nested directories (for example, Desktop was located under Users and username… there was a character that separated each directory).

What character represents the path separator on OSX (we just saw this)?

Absolute vs Relative Paths

Some Special Paths

There are shortcuts to represent specific paths:

The following paths are relative to the directory that you're in:

Let's See Some Pathnames Through Finder