Datasheet

Book VIII
Chapter 1
. . . And UNIX
Lurks Beneath
655
UNIX Programs That Come in Handy
find ~/ -name “Fonts” | less
When the results fill up one page, the data stops and waits for you to press
any key (except the Q key) to continue. When you reach the end of the
results, press Q to quit and return to a command-line prompt.
UNIX Programs That Come in Handy
As a Macintosh user, you might be surprised to know that many applications
on your hard drive don’t reside in one of the typical Applications folders of
Mac OS X. These applications, in fact, don’t have any graphical user interface
like what you’re accustomed to. They’re accessible only from the command
line. The remainder of this chapter covers some of these applications.
Text editors
UNIX has many text-editing applications for use at the command line. Some
of the more popular ones include pico, vi, and emacs. Each of these text
editors has its pros and cons — and say thanks to the thorough folks at
Apple, because all three are included with Snow Leopard! For my examples
here, however, I use pico because it’s simple to use and sufficient for our
needs.
Creating a new document
To create a text file by using pico, simply type pico at the command line.
The result looks like Figure 1-7.
Figure 1-7:
The
pico
program
is a full-
strength text
editor, right
from the
command
line.
54_435410-bk08ch01.indd 65554_435410-bk08ch01.indd 655 8/6/09 12:45:00 AM8/6/09 12:45:00 AM