Chapter 13

Maintaining OS X

To keep OS X running smoothly, maintain top performance, and reduce the risk of computer problems, you need to perform some routine maintenance chores. This chapter shows you how to empty the Trash, delete unnecessary files, uninstall applications, back up and restore your files, recondition your notebook battery, and more.

9781118683231-co1301.tif

Empty the Trash

Organize Your Desktop

Check Hard Drive Free Space

Uninstall Unused Applications

Force a Stuck Application to Close

Configure Time Machine Backups

Restore an Earlier Version of a File

Restore Files Using Time Machine

Recondition Your Mac Notebook Battery

Restart Your Mac

Empty the Trash

You can free up disk space on your Mac by periodically emptying the Trash. When you delete a file or folder, OS X does not immediately remove the file from your Mac’s hard drive. Instead, OS X moves the file or folder to the Trash. This is useful if you accidentally delete an item, because it means you can open the Trash and restore the item. However, all those deleted files and folders take up disk space, so you need to empty the Trash periodically to regain that space. You should empty the Trash at least once a week.

Empty the Trash

9781118683231-fg1301.eps

001 Click the desktop.

002 Click Finder from the menu.

003 Click Empty Trash.

A You can also right-click the Trash icon (9781118683231-ma130.tif) and then click Empty Trash.

Note: Another way to select the Empty Trash command is to press shift.eps+cmd.eps+delete.eps.

OS X asks you to confirm the deletion.

9781118683231-fg1302.eps

004 Click Empty Trash.

OS X empties the Trash (9781118683231-ma130.tif changes to 9781118683231-ma121.tif).

Organize Your Desktop

You can make your OS X desktop easier to scan and navigate by organizing the icons. The OS X desktop automatically displays icons for objects such as your external hard drives, inserted CDs and DVDs, disk images, and attached iPods. The desktop is also a handy place to store files, file aliases, copies of documents, and more. However, the more you use your desktop as a storage area, the more the desktop can become disarrayed, making it hard to find the icon you want. You can fix this by organizing the icons.

Organize Your Desktop

9781118683231-fg1303.eps

001 Click the desktop.

002 Click View.

003 Click Clean Up By.

004 Click Name.

You can also right-click the desktop, click Clean Up By, and then click Name, or press opt.eps+cmd.eps+1.eps.

9781118683231-fg1304.eps

A Your Mac organizes the icons alphabetically and arranges them in columns from right to left.

Check Hard Drive Free Space

To ensure that your Mac’s hard drive does not become full, you should periodically check how much free space it has left. If you run out of room on your Mac’s hard drive, you will not be able to install more applications or create more documents, and your Mac’s performance will suffer. To ensure your free space does not become too low — say, less than about 20 or 25GB — you can check how much free space your hard drive has left.

You should check your Mac’s hard drive free space about once a month.

Check Hard Drive Free Space

Check Free Space Using Finder

9781118683231-fg1305.eps

001 Click Finder (9781118683231-ma012.tif).

002 Click Desktop.

Note: You can also click any folder on your Mac’s hard drive.

003 In the status bar, read the available value, which tells you the amount of free space left on the hard drive.

If you do not see the status bar, press cmd.eps+forwardslash.eps.

Display Free Space on the Desktop

9781118683231-fg1306.eps

001 Display your Mac’s HD (hard drive) icon on the desktop, as described in the first Tip.

002 Click the desktop.

003 Click View.

004 Click Show View Options.

Note: You can also run the Show View Options command by pressing cmd.eps+j.eps.

The Desktop dialog appears.

9781118683231-fg1307.eps

005 Click Show item info (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

A Your Mac displays the amount of free hard drive space under the Macintosh HD icon.

9781118683231-fg1308.eps

006 Drag the Icon size 9781118683231-ma118.tif until you can read all the icon text.

007 If you still cannot read all the text, click the Text size 9781118683231-ma009.tif and then click a larger size.

008 Click Close (9781118683231-ma010.tif).

Uninstall Unused Applications

If you have an application that you no longer use, you can free up some disk space and reduce clutter in the Applications folder by uninstalling that application. When you install an application, the program stores its files on your Mac’s hard drive, and although most programs are quite small, many require hundreds of megabytes of space. Uninstalling applications you do not need frees up the disk space they use and removes their icons or folders from the Applications folder. In most cases, you must be logged on to OS X with an administrator account to uninstall applications.

Uninstall Unused Applications

9781118683231-fg1309.eps

001 Click Finder (9781118683231-ma012.tif).

9781118683231-fg1310.eps

002 Click Applications.

9781118683231-fg1311.eps

003 Click and drag the application or its folder and drop it on the Trash icon (9781118683231-ma121.tif).

If your Mac prompts you for an administrator password, type the password, and then click OK.

9781118683231-fg1312.eps

A Your Mac uninstalls the application.

Force a Stuck Application to Close

When you are working with an application, you may find that it becomes unresponsive and you cannot interact with the application or even quit the application normally. In that case, you can use an OS X feature called Force Quit to force a stuck or unresponsive application to close, which enables you to restart the application or restart your Mac.

Unfortunately, when you force an application to quit, you lose any unsaved changes in your open documents. Therefore, you should make sure the application really is stuck before forcing it to quit. See the second Tip for more information.

Force a Stuck Application to Close

9781118683231-fg1314.eps

001 Click 9781118683231-ma007.tif.

9781118683231-fg1315.eps

002 Click Force Quit.

The Force Quit Applications window appears.

9781118683231-fg1316.eps

003 Click the application you want to shut down.

004 Click Force Quit.

Your Mac asks you to confirm that you want to force the application to quit.

9781118683231-fg1317.eps

005 Click Force Quit.

Your Mac shuts down the application.

006 Click Close (9781118683231-ma010.tif) to close the Force Quit Applications window.

Configure Time Machine Backups

One of the most crucial OS X maintenance chores is to configure your system to make regular backups of your files. Macs are reliable machines, but they can crash and all hard drives eventually die, so at some point your data will be at risk. To avoid losing that data forever, you need to configure Time Machine to perform regular backups.

To use Time Machine, your Mac requires a second hard drive. This can be a second internal drive on a Mac Pro or Mac mini, but on most Macs the easiest course is to connect an external hard drive.

Configure Time Machine Backups

Configure Backups Automatically

001 Connect an external USB, Thunderbolt, or FireWire hard drive to your Mac.

OS X asks if you want to use the hard drive as your backup disk.

9781118683231-fg1318.eps

002 Click Use as Backup Disk.

Note: If OS X does not ask to use the hard drive, continue with the following steps.

Configure Backups Manually

9781118683231-fg1319.eps

001 Click System Preferences (9781118683231-ma006.tif).

002 Click Time Machine.

The Time Machine preferences appear.

9781118683231-fg1320.eps

003 Click Select Backup Disk.

Time Machine displays a list of available backup devices.

9781118683231-fg1321.eps

004 Click the external hard drive.

005 Click Use Disk.

Time Machine enables backups and prepares to run the first backup automatically in 2 minutes.

006 Click Close (9781118683231-ma010.tif).

Restore an Earlier Version of a File

If you improperly edit or accidentally overwrite a file, some apps enable you to revert to an earlier version of the file. Why would you want to revert to an earlier version of a file? One reason is that you might improperly edit the file by deleting or changing important data. In some cases you may be able to restore that data by going back to a previous version of the file. Similarly, if you overwrite the file with a different file, you can fix the problem by restoring an earlier version of the file.

Restore an Earlier Version of a File

9781118683231-fg1322.eps

001 Open the file you want to restore.

9781118683231-fg1323.eps

002 Click File.

003 Click Revert To.

Note: If you do not see the Revert To command, it means the application does not support this feature.

A To restore the most recently saved version, click Last Saved.

B To restore the most recently opened version, click Last Opened.

004 Click Browse All Versions.

The restore interface appears.

9781118683231-fg1324.eps

C This window represents the current version of the file.

D Each of these windows represents an earlier version of the file.

E This area tells you when the displayed version of the file was saved.

F You can use this timeline to navigate the earlier versions.

9781118683231-fg1325.eps

005 Navigate to the date that contains the version of the file you want to restore.

Note: See the Tip to learn how to navigate the Time Machine backups.

006 Click Restore.

OS X reverts the file to the earlier version.

Restore Files Using Time Machine

If you have configured OS X to make regular Time Machine backups, you can use those backups to restore a lost file. If you accidentally delete a file, you can quickly restore it by opening the Trash folder. However, that does not help you if you have emptied the Trash folder. Similarly, if the program or OS X crashes, a file may become corrupted.

Because Time Machine makes hourly, daily, and weekly backups, it stores older copies of your data. You can use these backups to restore any file that you accidentally delete or that has become corrupted.

Restore Files Using Time Machine

9781118683231-fg1326.eps

001 Click Finder (9781118683231-ma012.tif).

002 Open the folder you want to restore, or the folder that contains the file you want to restore.

A To restore your entire hard drive, choose Macintosh HD in the sidebar.

Note: Restore your entire hard drive only if your original hard drive crashed and you have had it repaired or replaced.

003 Click Spotlight (9781118683231-ma084.tif).

004 Type time machine.

005 Click Time Machine.

The Time Machine interface appears.

9781118683231-fg1327.eps

B Each window represents a backed-up version of the folder.

C This area tells you when the displayed version of the folder was backed up.

D You can use this timeline to navigate the backed-up versions.

9781118683231-fg1328.eps

006 Navigate to the date that contains the backed-up version of the folder or file.

Note: See the Tip to learn how to navigate the Time Machine backups.

007 If you are restoring a file, click the file.

008 Click Restore.

If another version of the folder or file already exists, Time Machine asks if you want to keep it or replace it.

9781118683231-fg1329.eps

009 Click Replace.

Time Machine restores the folder or file.

Recondition Your Mac Notebook Battery

To get the most performance out of your Mac notebook’s battery, you need to recondition the battery by cycling it. Cycling a battery means letting it completely discharge and then fully recharging it again. Most Mac notebook batteries slowly lose their charging capacity over time. For example, if you can use your Mac notebook on batteries for 4 hours today, you will later be able to run the computer for 3 hours only on a full charge. You cannot stop this process, but you can delay it significantly by cycling the battery once a month or so.

Recondition Your Mac Notebook Battery

Display the Battery Status Percentage

9781118683231-fg1330.eps

001 Click the Battery status icon (9781118683231-ma135.tif).

002 Click Show Percentage.

Your Mac shows the percentage of available battery power remaining.

Cycle the Battery

001 Disconnect your Mac notebook’s power cord.

9781118683231-fg1331.eps

A The Battery Status icon changes from 9781118683231-ma135.tif to 9781118683231-ma136.tif.

002 Operate your Mac notebook normally by running applications, working with documents, and so on.

9781118683231-fg1332.eps

003 As you work, keep your eye on the Battery Status percentage.

When the Battery Status reaches 4%, your Mac warns you that it is now running on reserve power.

9781118683231-fg1333.eps

004 Click OK.

005 Reattach the power cord.

Your Mac restarts and the Battery Status icon changes from 9781118683231-ma136.tif to 9781118683231-ma133.tif.

9781118683231-fg1334.eps

006 Leave your Mac plugged in at least until the Battery Status shows 100%.

Restart Your Mac

If a hardware device is having a problem with some system files, it often helps to restart your Mac. By rebooting the computer, you reload the entire system, which is often enough to solve many computer problems.

For a problem device that does not have its own power switch, restarting your Mac might not resolve the problem because the device remains powered up the whole time. You can power cycle — shut down and then restart — such devices as a group by power cycling your Mac.

Restart Your Mac

Restart Your Mac

9781118683231-fg1335.eps

001 Click the Apple icon (9781118683231-ma007.tif).

002 Click Restart.

Your Mac asks you to confirm.

9781118683231-fg1336.eps

003 Click Restart.

Note: To bypass the confirmation dialog, press and hold opt.eps when you click the Restart command.

Power Cycle Your Mac

9781118683231-fg1337.eps

001 Click 9781118683231-ma007.tif.

002 Click Shut Down.

Your Mac asks you to confirm.

Note: To bypass the confirmation dialog, hold down opt.eps when you click Shut Down.

9781118683231-fg1338.eps

003 Click Shut Down.

004 Wait for 30 seconds to give all devices time to spin down.

005 Turn your Mac back on.