Unix Directories & Files

Before I start my discussion of Unix commands, let’s take a look at the structure of the Unix file system.

The directory system

Like the Macintosh file system, the Unix file system starts at the top level with a root directory, which can contain files and sub-directories. The root directory in Mac OS 9 and earlier is named after your hard disk. The root directory in Unix is named / (a slash without any other characters following it). Subdirectories below the root directory are indicated by listing them after the root slash. Each subdirectory is separated from the subdirectory it resides within by a slash.

For example, a home directory could be /Users/ronh. That means that in the root directory, /, is a subdirectory ...

Get Mac OS X 10.4 Tiger: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.