Datasheet

652
Useful Commands
Append a number to the cal command to display a 12-month calendar for
that year. The number that follows the cal command is the year for which
you’d like to see a calendar. For example, to view a calendar for 1970, type
cal 1970. The result appears in Figure 1-5.
Figure 1-5:
Type cal
followed by
a year to
view the 12
months of
that year.
Append a month number and a year number to display the calendar for that
month. For example, to view a calendar for April 2010, type cal 04 2010.
Use the –m flag to specify the current year, as in cal –m 08 for August of this
year.
Another useful command that’s related to the cal command is date. Type
date at the command line to display the day, date, time, and year based on
your computer’s settings.
WHITEDRAGON:~ markchambers$ date
Mon Jan 15 11:32:20 CDT 2009
Processes
Have you ever been curious as to why your hard drive seems to spin and
grind on occasion while your system is seemingly inactive? Mac OS X
sometimes has a lot of stuff going on behind the scenes. To discover just
what your computer is busy doing at any time, use the top command to
display all the actions that your computer is currently performing, as shown
54_435410-bk08ch01.indd 65254_435410-bk08ch01.indd 652 8/6/09 12:45:00 AM8/6/09 12:45:00 AM