Chapter 3. Using Unix

Once you launch Terminal, you can use the many facilities that Mac OS X provides. As a user, you have an account that gives you:

  • A place in the filesystem where you can store your files

  • A username that identifies you and lets you control access to your files

  • An environment you can customize

The Mac OS X Filesystem

A file is the unit of storage in Mac OS X. A file can hold anything: text (a report you’re writing, a to-do list), a program, digitally encoded pictures or sound, and so on. All of those are just sequences of raw data until they’re interpreted by the right program.

Files are organized into directories (more commonly referred to as a folder on the Aqua (graphical) side of the Mac). A directory is actually a special kind of file where the system stores information about other files. You can think of a directory as a place, so that files are said to be contained in directories, and you work inside a directory. It’s important that you realize that everything is a file in Unix. Whether you’re working with a directory (perhaps moving files around) or editing a document, Unix fundamentally looks at everything as the same sort of container of information.

A filesystem includes all the files and directories on a mounted volume, such as your system’s hard disk or your iDisk. This section introduces the Mac OS X filesystem. Later sections show how you can look in files and protect them. Chapter 4 has more information.

Your Home Directory

When you launch Terminal, ...

Get Learning Unix for Mac OS X Panther 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.