Datasheet
680
UNIX Commands 101
Drag-and-drop is also at your disposal. After you play around with the 
Terminal for a while, you’ll find yourself bored to tears typing the long 
paths that represent the files on your hard drive. To automatically enter the 
path of a file or folder to a command, simply drag it to the active Terminal 
window, as shown in Figure 1-2. The file’s full path instantly appears at the 
location of your cursor. (Thanks, Apple!)
You can even use the mouse while entering commands in the Terminal. Click 
and drag your mouse over text to select it. From there, you can copy to the 
Clipboard as you might expect with any other application.
Figure 1-2: 
Drag a 
file from 
a Finder 
window into 
Terminal to 
display its 
path.
UNIX Commands 101
To use the command line effectively, familiarize yourself with the commands 
that are available to you. After all, how can you use a tool without knowing 
what it can do? Despite having to memorize a few commands, UNIX usually 
makes it easy on you by abbreviating commands, by following a standard 
grammar (so to speak), and by providing you with extensive documentation 
for each command.
55_9781118022061-bk08ch01.indd 68055_9781118022061-bk08ch01.indd 680 8/10/11 9:39 AM8/10/11 9:39 AM










