2.1. The Mac OS X Folder Structure

 < Day Day Up > 

The icon for your hard drive (usually called Macintosh HD) may appear in the upper-right corner of your screen. But if you begin each morning by double-clicking it, like millions of other people who've grown used to older versions of the Mac OS, you're in for a shock : Your stuff isn't there .

All you'll find in the Macintosh HD window is a set of folders called Applications, Library, and Usersfolders you didn't put there. (If you upgraded an existing Mac to Mac OS X 10.4, you'll also see all your original hard drive folders nestled among them.)

Most of these folders aren't very useful to you, the Mac's human companion. They're there for Mac OS X's own use. Think of your main hard drive window as storage for the operating system itself, which you'll access only for occasional administrative purposes.

2.1.1. Your Home Folder

Instead of setting up your nestyour files, folders, aliases, and so onin the hard drive window, Mac OS X keeps all of it in your Home folder . That's a folder bearing your name (or whatever name you typed when you installed Mac OS X).

One way to find the Home folder is to double-click the Users folder, and then double-click the folder inside it that bears your name and looks like a house (see Figure 2-1). Here, at last, is the window that you'll eventually fill with new folders, organize, back up, and so on.

Mac OS X is rife with shortcuts for opening this all-important folder:

  • Choose Go Home, or press Shift- -H.

  • In the Sidebar (Section 1.2.1), click the Home icon (the little house).

  • In the Dock, click the Home icon. (If you don't see one, consult Section 4.2 for instructions on how to put one there.)

  • Press -N, or choose File New Finder Window. (If your Home folder doesnt open when you do that, see Section 1.2.7.)

All of these steps open your Home folder directly.

So why has Apple demoted your files to a folder three levels deep? The answer may send you through the five stages of grief Denial, Anger, Bargaining, Depression, and finally Acceptancebut if you're willing to go through it, much of the mystery surrounding Mac OS X will fade away.

Mac OS X has been designed from the ground up for computer sharing . It's ideal for any situation where different family members , students, or workers share the same Mac.

Each person who uses the computer will turn on the machine to find his own separate desktop picture, set of files, Web bookmarks, font collection, and preference settings. (You'll find much more about this feature in Chapter 12.)

Like it or not, Mac OS X considers you one of these people. If you're the only one who uses this Mac, finesimply ignore the sharing features. (You can also ignore all that business at the beginning of Chapter 1 about logging in.) But in its little soft ware head, Mac OS X still considers you an account holder, and stands ready to accommodate any others who should come along.


Note: Some Mac fans have noted with dismay that Mac OS X lacks an Encrypt command for protecting individual files. In part, that's because the need for file-by-file privacy isn't quite as critical now that Tiger can encrypt your entire machine environment (Chapter 12). Still, if you miss the ability to password-protect individual folders or files, you can use Mac OS X's Disk Utility to do it, as described on Section 10.26.10.3.

In any case, now you should see the importance of the Users folder in the main hard drive window. Inside are foldersthe Home foldersnamed for the different people who use this Mac. In general, nobody is allowed to touch what's inside anybody else's folder.

If you're the sole proprietor of the machine, of course, there's only one Home folder in the Users foldernamed for you. (You can ignore the Shared folder, which is described on Section 12.6.2.)

This is only the first of many examples in which Mac OS X imposes a fairly rigid folder structure. Still, the approach has its advantages. By keeping such tight control over which files go where, Mac OS X keeps itself pureand very, very stable. (Other operating systems known for their stability, such as Windows 2000 and Windows XP, work the same way.)

Furthermore, keeping all of your stuff in a single folder makes it very easy for you to back up your work. It also makes life easier when you try to connect to your machine from elsewhere in the office (over the network) or elsewhere in the world (over the Internet), as described in Chapter 22.

Figure 2-1. This is it: the folder structure of Mac OS X. It's not so bad, really. For the most part, what you care about are the Applications folder in the main hard drive window and your own Home folder. You're welcome to save your documents and park your icons almost anywhere on your Mac (except inside the System folder or other people's Home folders). But keeping your work in your Home folder makes backing up and fille sharing easier.


2.1.2. What's in Your Hard Drive Window

When you first run Mac OS X, you'll find the following folders in the main hard drive window:

  • Applications . The Applications folder, of course, contains the complete collection of Mac OS X programs on your Mac (not counting the invisible Unix ones). Even so, you'll rarely launch programs by opening this folder; the Dock is a far more efficient launcher, as described in Chapter 4.

  • Library . This folder bears more than a passing resemblance to the System Folder subfolders of Mac OSes gone by, or the Windows folder on PCs. It stores components for the operating system and your programs (sounds, fonts, preferences, help files, printer drivers, modem scripts, and so on).

  • System . This is Unix, baby. These are the actual files that turn on your Mac and control its operations. You'll rarely have any business messing with this folder, which is why Apple made almost all of its contents invisible.

  • Users . As noted earlier, this folder stores the Home folders for everyone who uses this machine.

Depending on how you installed Mac OS X, you may also filnd:

  • Developer . You'll find this folder only if you're a software programmer and bothered to install the Xcode Tools from your Tiger DVD.

  • Applications (Mac OS 9) . If you upgraded your Mac from Mac OS 9, all of your old, preMac OS X programs wind up in this folder (or rather, those that you kept in your old Applications folder).

  • System Folder . Here's another folder you'll find only if you upgraded from Mac OS 9. It contains Mac OS 9 itself. (Don't confuse the Mac OS 9 folder, called System Folder , with the one that's just called System that one contains Mac OS X.)

  • Your old junk . If you upgraded your Mac from an earlier Mac operating system, your main hard drive window also lists whatever folders you kept there.

2.1.3. What's in Your Home Folder

Within the folder that bears your name, you'll find another set of standard Mac OS X folders. Except as noted, you're free to rename or delete them; Mac OS X creates the following folders solely as a convenience:

  • Desktop . When you drag an icon out of a folder or disk window and onto your Mac OS X desktop, it may appear to show up on the desktop. But that's just an optical illusion, a visual convenience. In truth, nothing in Mac OS X is really on the desktop. It's actually in this Desktop folder, and mirrored on the desktop area.

    The reason is simple enough: Remember that everyone who shares your machine will, upon logging in, see her own stuff sitting on the desktop. Now you know how Mac OS X does it: There's a separate Desktop folder in every person's Home folder.

    UP TO SPEED
    The Computer Window

    In your explorations of the Finder's Go menu, you may have wondered about the command called Computer (Shift- - C). ("Go to my Computer? Jeez, I thought I was already at my computer")

    As in Microsoft Windows, the Computer window holds the icons for all the disks connected to your machinethe hard drive, a CD that you've inserted, an iPod, another external hard drive, and so onas well as an icon called Network. (The Network icon appears even if you're not, in fact, on a network.) This is the topmost level of your Mac. This is the stuff that can't be put into any folder at all.

    So what's it for? In some ways, the Computer window is redundant. After all, Mac OS X automatically displays your disk icons on the desktop and in the Sidebar.

    But some people, particularly Windows refugees, don't care for that icons-on-the-desktop feature. In the interest of creating a neater, cleaner desktop, they turn it off, in fact (by choosing Finder Preferences and turning off the three checkboxes under "Show these items on the Desktop). Furthermore, in the interest of creating neater, narrower windows, they may also hide the Sidebar.

    In that case, the Computer window still provides access to all of your disks.

    Otherwise, the Computer window really doesn't serve much purpose except as a familiar landmark to Windows veterans and Mac fans who grew used to it in the era before the Sidebar came along.


    You can entertain yourself for hours by proving this point to yourself. If you drag something out of your Desktop folder, it also disappears from the actual desktop. And vice versa. (You're not allowed to delete or rename this folder.)


    Tip: The desktop is actually a folder in your Home folder. That's handy, because it gives you a quick and sneaky way to jump to your Home folder from anywhere. Simply click the desktop background and then press -up arrow (which is the keystroke for Go Enclosing Folder; pay no attention to the fact that the command is dimmed at the moment).Because that keystroke always means "open whatever folder contains the one I'm examining," it instantly opens your Home folder. (Your Home folder is, of course, the "parent" of your Desktop folder.)
  • Documents . Apple suggests that you keep your actual work files in this folder. Sure enough, whenever you save a new document (when you're working in AppleWorks or Word, for example), the Save As box proposes storing the new file in this folder, as described in Chapter 5.

    Your programs may also create folders of their own here. For example, you may find a Microsoft User Data folder for your Entourage email, a Palm folder for your palmtop's calendar and phone book data, and so on.

  • Library . As noted earlier, the main Library folder (the one in your main hard drive window) contains folders for fonts, preferences, help files, and so on.

    You have your own Library folder, too, right there in your Home folder. It stores the same kinds of thingsbut they're your fonts, your preferences, and so on.

    Once again, this setup may seem redundant if you're the only person who uses your Mac. But it makes perfect sense in the context of families, schools , or offices where numerous people share a single machine. Because you have your own Library folder, you can have a font collection that's "installed" on the Mac only when you're using it. Each person's program preference files are stored independently, too (the files that determine where Photoshop's palettes appear, and so on). And each person, of course, sees his own email when launching Mac OS X's Mail program (Chapter 20)because mail, too, is generally stored in the personal Library folder.

    UP TO SPEED
    The Wacky Keystrokes of Tiger

    Mac OS X offers a glorious assortment of predefined keystrokes for jumping to the most important locations on your Mac: your Home folder, the Applications folder, the Utilities folder, the Computer window, your iDisk, the Network window, and so on.

    Better yet, the keystrokes are incredibly simple to memorize: Just press Shift- and the first letter of the location you want. Shift- -H opens your Home folder, Shift- -A opens the Applications folder, and so on. You learn one, you've learned 'em all.

    The point here is that Shift- , in Tiger, means places .

    The other system-wide key combo, Option- , means functions . For example, Option- -D hides or shows the Dock, Option- -H is the Hide Others command, Option- -+ magnifies the screen (if you've turned on this feature), Option- -Esc brings up the Force Quit dialog box, and so on. Consistency is always nice.


    Other Library folders store your Favorites, Web browser plug-ins and cached Web pages, keyboard layouts, sound files, and so on. (It's best not to move or rename Library folders.)

  • Movies, Music, Pictures . These folders, of course, are designed to store multimedia files. The various Mac OS X programs that deal with movies, music, and pictures will propose these specialized folders as storage locations. For example, when you plug a digital camera into a Mac OS X computer, the iPhoto program automatically begins to download the photos on itand stores them in the Pictures folder. Similarly, iMovie is programmed to look for the Movies folder when saving its files, and iTunes stores its MP3 files in the Music folder.

  • Public . If you're on a network, or if others use the same Mac when you're not around, this folder can be handy: It's the "Any of you guys can look at these files" folder. Other people on your network, as well as other people who sit down at this machine, are allowed to see whatever you've put in here, even if they don't have your password. (If your Mac isn't on an office network and isn't shared, you can throw away this folder.) Details on sharing the Mac are in Chapter 12, and those on networking are in Chapter 13.

  • Sites . Mac OS X has a built-in Web server : software that turns your Mac into a Web site that people on your networkor, via the Internet, all over the worldcan connect to. This Mac OS X feature relies on a program called the Apache Web server, which is so highly regarded in the Unix community that programmers lower their voices when they mention it.

    NOSTALGIA CORNER
    Printing a Windowor a List of Files

    Hey, in Mac OS 9, I could print a Finder window. I'd get a neat list of the files, which I could use as a label for a CD I was going to burn, or whatever. How do I print a Finder window in Mac OS X? (The File Print command prints a selected document, not the list of files in a window .)

    It's easy enough to make a list of files for printing. Once the window is open on your screen, choose Edit Select All. Choose Edit Copy. Now switch to a word processor and paste. (If youre using TextEdit, use Edit Paste and Match Style instead.) You get a tidy list of all the files in that window, ready to format and print.

    This simple file name list still isn't the same as printing a window, that's true; you don't get the status bar showing how many items are on the disk and how full the disk is. For that purpose, you can always make a screenshot of the window (Section 14.9), and print that. Of course, that technique's no good if the list of files is taller than the window itself.

    Really, what you want is Print Window, a handy shareware program dedicated to printing out your Finder windows, without any of these workarounds or limitations. You can download it from the "Missing CD" page at www.missingmanuals.com.


    Details of the web server are in Chapter 22. For now, though, note that this is the folder where you will put the actual Web pages you want to make available to the Internet at large.

 < Day Day Up > 


Mac OS X. The Missing Manual
Mac OS X Snow Leopard: The Missing Manual (Missing Manuals)
ISBN: 0596153287
EAN: 2147483647
Year: 2005
Pages: 506
Authors: David Pogue

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net