<<

. 68
( 69 .)



>>

path on hard drive, 11
print file on line printer, 58
path set, 88
print file on postscript printer, 59
path value, 88
print queue, 172“173
path variable, 85
print text on printer, 58“59
pathname
print underlay, 59
designate files by, 21
printenv command, 86
drag to Terminal window, 133
printf command, 302
patterns in Perl, 254“255
process, 96
pbcopy command, 126
process run in background, 100“101
pbpaste command, 126
Processes settings, 7
.pdf file extension, 124
prompt
Perl
format codes, 81
about, 242“243, 307
format sequence, 80
install modules, 262“265
set, 80“81
patterns, 254“255
prompt2 set, 80
script run, 252“253
ps -a command, 104“105
scripts on command line, 256“257
ps -aux command, 104“105
write script, 250“251
ps -u command, 104“105
-perm argument, 29
ps -x command, 104“105
permissions, set, 25
ps command, 104“105
Photoshop, 122
pushd command, 31
PHP
pwd command, 10, 30“31
about, 186
Python applications, 304“305, 307
access databases, 314“315
applications, 246“247

332
Unix for Mac:
Your visual blueprint to maximizing
the foundation of Mac OS X


Q S
question mark (?) wildcard, 26, 47 save file
quit command, 74 different name, vi, 74
quit Pico, 63 emacs, 78
quotations marks in command line, 10 and exit vi, 75
Pico, 63
R sorted text, 57
vi, 74“75
-R option, 37
Window settings, 6
-r option, 35
schedule scripts to run automatically, 120“121
read access, file, 24
Screen, 317
read files, Perl, 258“259
screencapture command, 124“125
reboot command, 156“157
screenshot
recall
capture, 124“125
command history, 90“91
edit, 125
shell commands, 8
scroll bars, Terminal application, 5
redirect text to file, 48“49
search for text in files with grep command, 10
regexps, 46
second prompt, 80
regular expressions, 46
section of screen capture, 124“125
relative pathnames, 21
sed command, 118“119
remote access enable, 152“153
selection of files with completion, 27
remote system
send
reachable, 142“143
e-mail, 218“219
secure access, 148“149
e-mail Pine, 226“227
rename files, 22
sendmail, configure, 214“215
repeat last command, 90
sequential commands run, 96
reply to e-mail, Pine, 225
server
resource forks, 128“129
Apache, 232“233
restart computer, 156“157
X Window System, 268
restart process, 98“99
set
restore command, 165
autolist command, 27
rlogin command, 15, 144“145
prompt, 80“81
rm command, 10, 23, 82
value of shell, 85
rmdir command, 23, 34“35
Window Title, 6
root account, 157
set command, 9, 82“83, 84
root user account enable, 160“161
set environment variable, 94
rootless mode, start XFree86, 278“279
set noclobber command, 49
.rtf files, 293
setenv command, 86
Ruby applications, 306“307
setopt command, 95
ruler option, vi, 65
sftp command, 148“149
run from Terminal application, 15
shebang line, 253
rw-, 19




333
INDEX
start
shell
Apache Web server, 230
prompt, 4
bash from tcsh, 94
settings, 7
start command, 231
talk, 130
start new shell, 92
variables set, 84“85
start zsh from tcsh, 95
shell commands
stat command, 145
about, 3, 10“11
statement of authority (SOA) record, 138
enter, 8“9
stop
error correction, 9
Apache Web server, 231
Terminal application and, 4
stop command, 231
use, 11
stop shutdown, 157
shell scripts
stopped job, 96
clickable, 132
stopped process, 102“103
conditional, 114“115
styles, add to Web site, 240“241
extend with sed command, 118“119
subnet mask, 136“137
run, 110“111
sudo command, 93, 153, 157, 162“163
write, 108“109
sudoers file, 162
show
suspend current process, 96“97
file attributes, 18“19
symbolic links, 168“169
hidden files, 17
system administration, 154“155
showmode option, vi, 65, 68
system administrator, 154
shut down computer, 156“157
system logs inspection, 174“175
shutdown command, 156“157
system.log file, 175
SIGHUP, 103
SIGKILL, 103
T
signals, 103
SIGTERM, 103 tail command, 44“45
simple directives, 232 tar command, 164, 192“193
size, directory, 38“39 .tar files, 177
-size argument, 29 .tar.Z files, 177
slogin command, 15 TCP/IP (Transmission Control Protocol/Internet
SmallTalk, 306 Protocol), 134
"sniffing" packets, 148 TCP protocol, 141
SOA (statement of authority) record, 138 tcsh shell, 92, 115
Software License Agreement, Developer Tools, 182 .tcshrc file, 89
sort command, 56“57 telnet command, 15, 134, 142, 144“145, 152
sort text, 56“57 TERM file, 6, 7
source code, 2 Terminal application
source command, 110“111 about, 3
split windows, Terminal application, 5 configure, 6“7, 79
spreadsheets start, 4“5
Gnumeric, 294“295 Unix shells run in, 4
Open Office, 298“299 windows run at same time, 4
SQL commands, 312“313 Terminal Inspector panel, 6
ssh command, 15, 142 Terminal window
ssh log on, 148 change appearance, 6
standard output, 48 exit, 14“15
launch, 4
334
Unix for Mac:
Your visual blueprint to maximizing
the foundation of Mac OS X

text vi
chain commands together, 50“51 edit file, 64
in columns, 55 editor options, 65
delete, 70“71 keystroke options, 67
edit, 72“73 text editor, 60
enter in vi, 68“69 view
extract from files, 46“47 binary files, 40
text editors, 60 images, xv, 286“287
text files portions of text files, 44“45
compare, 52“53 text files, 40
copy to clipboard, 126 text files as pages, 42“43
create, 41 Vim, 317
open in TextEdit, 123 visiblebell variable, 85
view, 40 visual editor, 64“65
TextEdit, 122
W
.tgz files, 177
then, 114 wc command, 54
tilde (˜) alias, 21 Web browse Lynx, 206“207
top command, 14, 106“107 Web files download, 150“151
traceroute command, 142“143 Web forms, CGI script, 267
transfer files, 146“147 Web page
Transmission Control Protocol/Internet Protocol (TCP/IP), copy, 150
134 structured, 238“239
true condition, 112 Web server creation, 152“153
.txt file extension, 74 Web site
add styles, 240“241
U create, 235
u, 24 Darwin source code, 3
uncompress command, 177 interactivity, 242“243
uniq command, 56“57 open source software, 189
University of California, Berkeley, 2 with Wget, 209
Unix applications on Web, 186“187 Web traffic analyze, 248“249
UNIX history, 2 Wget, 208“209
Unix manual, 12“13 which command, 11
unlink command, 261 while command, 112“113
unset autolist command, 27 whois command, 138
unset shell variable, 85 wildcard characters, 26
unsetenv command, 86 Wiley Publishing end-user license agreement, 320“321
uptime command, 107 Window Settings Panel, 6
Utilities folder, Applications folder, 4, 5 word count command, 54
word processing, 292“293
V words
search for in files, 43
-v option, 40
in text count, 54
value of environment variable, 87
write access, file, 24
verbose option, vi, 65
write files, Perl, 260“261


335
INDEX
X XDarwin, 268
XFree86

<<

. 68
( 69 .)



>>