Click on Chapters to see Detailed Contents |
Brief Contents
I Introduction to Solaris
II Intermediate/Advanced Solaris1 The Solaris Operating System 32 Getting Started 15
5 The Shell I 103
III The Solaris Utility Programs6 Graphical User Interfaces 1297 Networking and the Internet 185
9 The emacs Editor 291
10 The Shell II (sh) 347
11 Bourne Shell Programming 393
12 The C Shell 435
13 The Korn Shell and Advanced Shell Programming 479
14 Programming Tools 547
15 System Administration 591
A Regular Expressions 953B Help! 963
C Security 993
D The POSIX Standards 1007
Glossary 1025
Index 1051
Contents
Preface xlv
Audience xlv
Benefits xlv
Scope of Coverage and Features xlvi
Parts I, II, and III l
Supplements liii
Thanks liii
Part I
Introduction
to Solaris
The Solaris Operating System 3
The Heritage of UNIX 3Chapter 2What’s So Good about Solaris? 4
Overview of Solaris 6System Features 4Standards 4
Binary Compatibility 4
The Standardization of UNIX 5
How Can UNIX Run on Different Computers/Processors? 5
The C Programming Language 5Additional Features of Solaris 10Solaris Has a Kernel Programming Interface 6Supports Many Tasks at One Time 6
Supports Many Users at One Time 7
Solaris Provides a Hierarchical Filesystem
with Builtin Security 7The Shell Is a Command Interpreter
and Programming Language 8A Large Collection of Useful Utilities 9Filename Generation 8Device-Independent Input and Output 8
Shell Functions 8
Job Control 9
Interprocess Communication 9
System Administration 9
GNU/FSF 12Graphical User Interfaces 10(Inter)networking Utilities 10
Software Development 11
Screen-Oriented and Graphical Editors 11
Advanced Electronic Mail 11
Summary 12
Review Exercises 13
Getting Started 15
Before You Start 15The Solaris Utilities 41Logging In 18Name and Version of the Operating System 16Conventions 16
Keys and Characters 16Utility Names 16
Filenames 17
Shell and Builtin and Variable Names 17
Items You Enter 17
Prompts and RETURNs 17
Optional Information 18
Solaris2 Designation 18
Correcting Mistakes 23Graphical User Interface (GUI) 18Character-Based Interface 19
Logging Out 21Incorrect Login 20The Shell 21
Terminal Emulation and telnet21
Superuser 22
passwd: Changing Your Password 24Erasing a Character 23Deleting a Word 23
Deleting a Line 24
Aborting Execution 24
Documentation 26
Editing a File 29AnswerBook2 26man and xman: Displaying the System Manual 27
Basic Utilities 34Tutorial: dtpad: Creating and Editing a File 30Tutorial: textedit: Creating and Editing a File 32Correcting Mistakes 30Moving the Cursor 31
Highlighting Text 31
Saving a File 31
Ending an Editing Session 32
Getting Started 32Correcting Mistakes 33
Moving the Cursor 33
Highlighting Text 33
Saving a File 33
Ending an Editing Session 34
Quoting Special Characters 36ls: Listing the Contents of a Directory 34cat: Displaying a Text File 34
pg or more: Displaying a Long Text File 35
rm: Deleting a File 35
hostname: Displaying a Machine Name 36
Summary 37
Review Exercises 38
Advanced Review Exercises 39
Working with Files 41The Solaris Filesystem 75Three Useful Utilities 47cp: Copy a File 41mv: Change the Name of a File 42
lp: Print a File 43
grep: Find a String 43
head: Display the Beginning of a File 44
tail: Display the End of a File 45
sort: Display a File in Order 45
uniq: Remove Duplicate Lines in a File 45
diff: Compare Two Files 46
file: Test the Contents of a File 46
unix2dos: Convert Solaris Files to DOS/Windows Format 46
Compressing and Archiving Files 48echo: Display Text 47date: Display the Time and Date 47
script: Record a Solaris Session 47
Locating Commands 53compress: Shrink a File 49uncompress,zcat: Expand a File 50
tar: Pack and Unpack a File 50
Obtaining User and System Information 55which,whereis: Locate Utilities 53apropos: Search for Keywords 54
Communicating with Other Users 58who: List Users on the System 55finger: List Users on the System 56
w: List Users 57
Summary 70write: Send a Message 58Reading Mail 62talk: Communicate with Another User 59
mesg: Deny or Accept Messages 60
Electronic Mail 61
Similarities between dtmail and mailtool 61Tutorial: Using dtmail or mailtool to Send
and Receive Electronic Mail 62Sending Mail 63
Header 63
Alias 64
Getting Started 65Tutorial: Using pine to Send
and Receive Electronic Mail 65Sending Mail 66
Receiving Mail 68
Sending Mail to More Than One Person 69
Network Addresses 70Review Exercises 72
Advanced Review Exercises 73
The Hierarchical Filesystem 75Chapter 5Directory and Ordinary Files 76Using the Hierarchical Filesystem 76Working with Directories 86Filenames 77mkdir: Create a Directory 78Filename Extensions 78Invisible Filenames 78
cd: Change to Another Working Directory 79
The Working Directory 79
Your Home Directory 80Significance of the Working Directory 80Absolute Pathnames 81Startup Files 81Relative Pathnames 82
Important Standard Directories and Files 83The . and .. Directory Entries 83Access Permissions 88rmdir: Delete a Directory 86Using Pathnames 86
mv, cp: Move or Copy a File 88Special Pathnames 87mv: Move a Directory 88
Links 92ls–l: Display Permissions 89chmod: Change Access Permissions 90
Setuid and Setgid Permissions 90
Directory Access Permissions 91
Summary 98ln: Create a Link 94Symbolically Linked Directories under the Bourne and C Shells 97Symbolic Links 96cp versus ln 94Creating a Symbolic Link 96Using Symbolic Links to Change Directories 97
Symbolically Linked Directories under the Korn Shell 97
rm: Remove a Link 98Review Exercises 99
Advanced Review Exercises 101
The Shell I 103
The Command Line 103Standard Input and Standard Output 106Syntax 103Options 104Command Name 104Arguments 104
Processing the Command Line 105Executing the Command Line 106
Redirection 108The Window/Terminal as a File 107The Window/Terminal as Standard Input
and Standard Output 107Pipes 113Redirecting Standard Output 109Redirecting Standard Input 110
Appending Standard Output to a File 112
/dev/null 113
Running a Program in the Background 116Filters 115tee: Sending Output in Two Directions 115
Filename Generation/Pathname Expansion 118
Summary 123The ? Special Character 119The k Special Character 120
The [] Special Characters 121
Review Exercises 123
Advanced Review Exercises 125
Intermediate/Advanced Solaris
Graphical User Interfaces 129
What Is a GUI? 129Chapter 7Using a GUI 130
CDE Desktop Manager 134Logging In 131Menus 132
Dialog Boxes 132
Screen Layout 133
Window Manager 133
Desktop Manager 133
Workspace Manager 134
X Window System 153Front Panel 135Motif Scroll Bar 143Title Bar 138
Common Operations—Menus 138
Working with Windows 139Window Menu 138Workspace Menu 139
Logging Out 139
Closing a Window 139Opening a Terminal Emulator Window 140
Moving a Window 141
Resizing a Window 141
Raising and Lowering Windows 142
Scrolling Text 142
Athena Scroll Bar 143
OpenLook Scroll Bar 144
Using Icons 145File Manager 145
Copying and Pasting Text 151The View Menu 149The View/Set View Options Window 149
Properties 150
Customizing CDE 163X Window System Window Managers 154Local X Server, Remote Display 157X Window System and Solaris 154
Remote Computing and Local Displays 156Bringing Up the X Server 156Local Display, Remote X Server 158
Stopping the X Server 159Customizing Your X Work Environment 159
Remapping Mouse Buttons 159Customizing X Applications
on the Command Line 160Setting X Resources 161
OpenLook Window Manager 176Style Manager Tools 163.dtprofile 166Color Window 163Font Window 164
Backdrop Window 164
Keyboard Window 164
Mouse Window 164
Beep Window 165
Screen Window 165
Window Window 165
Startup Window 166
Building Menus 167
Actions 170
Front Panel 172
Login Manager 172
Initialization Files 173Session Manager 172Login Screen 173Issuing Commands before and after the Session 174
Session Setup 175
X Applications 181Workspace Menu 177File Manager 178
Customizing the Desktop 178
Saving the Desktop 178Help Viewer 179
Customizing Menus 179
Application Preferences 181
Summary 183
Review Exercises 184
Networking and the Internet 185
Network Services 187Chapter 8Intranets 187
Common Types of Networks 188
Communicating over the Network 198Local Area Networks (LANs) 189Wide Area Networks (WANs) 190Ethernet 189Internetworking through Gateways and Routers 190
Network Protocols 191
Host Addresses 193
Subnets 195
Networking Utilities 201finger: Learn about Remote Users 198Sending Mail to a Remote User 200
talk: with a Remote User 201
Mailing List Servers 201
Distributed Computing 216ping: Test a Network Connection 202rlogin, telnet: Access a Remote Computer 203
Trusted Hosts and the .rhosts File 206
rcp, ftp: Transfer Files over a Network 207
rsh: Run a Command Remotely 208Anonymous ftp208traceroute: Trace a Route over the Internet 209
rwho: List Users on Remote Computers 210
nslookup: Query Internet Name Servers 210
whois: Look Up a User on the Internet 213
Network Services/Daemons 221The Client/Server Model 216Overview of Domain Name Service (DNS) 217
Network Information Service (NIS) 218
Network File System (NFS) 219
automount: Automatic Filesystem Mounting 220
USENET 227
Tutorial: Using pine as a Newsreader 229
Overview of the World Wide Web 231Subscribing to Newsgroups 230Reading News 230
Posting News 230
Unsubscribing from Newsgroups 231
Tutorial: Using Netscape 234
Other WWW Browsers 241Screen Elements 234Navigating the Web 236
Reading Netnews 236
Downloading Files 237
Using Bookmarks 238
Using a Search Engine 238
More about URLs 241
Creating Your Own Web Page 242
Summary 242
Advanced Review Exercises 244
The vi Editor 245
History 245Chapter 9Tutorial: Using vi to Create
and Edit a File 246Introduction to vi Features 250Specifying a Terminal 246Starting vi 246
Command and Input Modes 247
Entering Text 248
Ending the Editing Session 250
Command Mode—Moving the Cursor 254Modes of Operation 250The Display 251
Correcting Text as You Insert It 252The Status Line 251Redrawing the Screen 251
The Tilde (~) Symbol 252
Command Case 252
The Work Buffer 252
Line Length and File Size 253
Abnormal Termination of an Editing Session 253
Recovering Text after a Crash 254
Input Mode 257Moving the Cursor by Characters 255Moving the Cursor by Words 255
Moving the Cursor by Lines 255
Moving the Cursor by Sentences and Paragraphs 256
Moving the Cursor within the Screen 256
Viewing Different Parts of the Work Buffer 257
Command Mode—Deleting and Changing Text 258The Insert Commands 257The Append Commands 257
The Open Commands 258
The Replace Commands 258
The Quote Command 258
Searching and Substituting 262The Undo Command 259The Delete Character Command 259
The Delete Command 259
The Change Command 260
The Substitute Command 262
The Case Command 262
Miscellaneous Commands 269Searching for a Character 262Searching for a String 263
Substituting One String for Another 264Special Characters in Search Strings 263The Substitute Address 265The Search and Replace Strings 265
The Yank, Put, and Delete Commands 269
Reading and Writing Files 272The General-Purpose Buffer 269The Named Buffers 270The Yank Command 269The Put Commands 270
The Delete Commands 270
The Numbered Buffers 271
Setting Parameters 273The Read Command 272The Write Command 272
Identifying the Current File 273
Advanced Editing Techniques 277Setting Parameters from vi273Setting Parameters in a Startup File 273
Setting Parameters in the .exrc Startup File 274
Parameters 274
Units of Measure 281Using Markers 277Editing Other Files 278
Macros and Shortcuts 278
Executing Shell Commands from vi279
Summary 284Character 281Word 281
Blank-Delimited Word 282
Line 282
Screen 283
Repeat Factor 283
Review Exercises 289
Advanced Review Exercises 290
The emacs Editor 291
About emacs 291Chapter 10Tutorial: Getting Started with emacs 293emacs versus vi 292Basic Editing Commands 298Starting emacs 293Stopping emacs 294
Inserting Text 295
Moving the Cursor 296
Editing at the Cursor Position 297Moving the Cursor by Characters 296Moving the Cursor by Words 296
Moving the Cursor by Lines 297
Moving the Cursor by Sentences, Paragraphs,
and Window Position 297Saving and Retrieving the Buffer 298
Online Help 303Keys: Notation and Use 299Key Sequences and Commands 300
Running a Command without a Key Binding: META-x 300
Numeric Arguments 300
Point and the Cursor 301
Scrolling through a Buffer 301
Erasing Text 301
Searching 302
Incremental Searches 302Nonincremental Searches 303
Regular Expression Searches 303
Advanced Editing Topics 305
Language-Sensitive Editing 316Undoing Changes 305Mark and Region 306
Cutting and Pasting: Yanking Killed Text 308
Inserting Special Characters 309
Global Buffer Commands 309
Working with Files 311Line-Oriented Operations 310Unconditional and Interactive Replacement 310
Working with Buffers 313Visiting Files 311Saving Files 311
Working with Windows 314
Foreground Shell Commands 315Window Creation by Splitting 314Manipulating Windows 315
Other-Window Display 315
Adjusting and Deleting Windows 315
Background Shell Commands 316
Customizing emacs 325Selecting a Major Mode 317Human-Language Modes 317
C Mode 320Working with Words 317Working with Sentences 317
Working with Paragraphs 318
Filling 318
Case Conversion 319
Text Mode 319
Customizing Indention for Versions 19 and Above 322Working with Expressions 320Function Definitions 321
Indention 321
Special-Purpose Modes 323Comment Handling 323Shell Mode 324emacs and the X Window System 329The .emacs Startup File 326Remapping Keys 326
A Sample .emacs File for Versions 19 and Above 328
Resources for emacs 334Mouse Commands for Cut and Paste 329Mouse-2 Selections 332
Scroll Bars 332
Manipulating Windows with the Mouse 332
Frame Management 333
Menu Bars 334Manipulating Frames 333Switching to Another Frame 333
Summary 335USENET emacs FAQ (Frequently Asked Questions) 334Access to emacs 335
Review Exercises 343
Advanced Review Exercises 344
The Shell II (sh) 347
Bourne Shell Background 348Chapter 11Creating a Simple Shell Script 349POSIX Shells 349Command Separation and Grouping 351chmod: Make a File Executable 349Redirecting Standard Error 355; and NEWLINE: Separate Commands 351\: Continue a Command 351
| and &: Separate Commands and Do Something Else 351
(): Group Commands 354
Job Control 357
Processes 360jobs: List Jobs 357fg: Bring a Job to the Foreground 358
bg: Put a Job into the Background 359
Parameters and Variables 365Process Structure 360Process Identification 361
Executing a Command 362
Invoking a Shell Script 362
#!: Specify a Shell 363#: Make a Comment 364
Startup Files 364
Command-Line Expansion 381User-Created Variables 366Keyword Variables 371unset: Remove a Variable 367readonly: Make a Variable Permanent 367
export: Make Variables Global 368
read: Accept User Input 369
` ...`: Substitute the Output of a Command 371
Positional Parameters 375HOME: Locate Your Home Directory 372PATH: Where to Find Programs 372
MAIL: Where Mail Is Kept 373
PS1: Prompt the User (Primary) 373
PS2: Prompt the User (Secondary) 374
IFS: Separate Input Fields 374
CDPATH: Broaden the Scope of cd374
Running .profile with the . (Dot) Builtin 375
Special Parameters 379$0: Name of the Calling Program 375$1–$9: Command-Line Arguments 376
shift: Promote Command-Line Arguments 377
set: Initialize Command-Line Arguments 378
$k and $@: Value of Command-Line Arguments 379$$: PID Number 380
$?: Exit Status 381
Summary 386Parameter Expansion 382Braces 382
Variable Expansion 382
Command Substitution 383
Word Splitting 383
Pathname Expansion 384
Review Exercises 389
Advanced Review Exercises 391
Bourne Shell Programming 393
Control Structures 394The C Shell 435if...then 394Expanding Null or Unset Variables 422if...then...else 397
if...then...elif 399
Debugging Shell Scripts 404
for...in 405
for 406
while 407
until 411
break and continue412
case 413
The Here Document 419
Builtins 423:– Use a Default Value 422:= Assign a Default Value 422
:? Display an Error Message 423
Functions 429exec: Execute a Command 423trap: Catch a Signal 425
A Partial List of Builtins 428
Summary 431
Review Exercises 432
Advanced Review Exercises 433
Shell Scripts 436Entering and Leaving the C Shell 436
History 438Startup Files 437Alias 443Reexecuting Events 440!!: Reexecute the Previous Event 440
!n: Event Number 440
!string: Event Text 440
!n:wWord within an Event 441
!!:s/new/oldModify a Previous Event 442
^old^newQuick Substitution 442Command-Line Expansion 446Quotation Marks: Single versus Double 444History Substitution in an Alias 444
Examples 444
Directory Stack Manipulation 450{}: Brace Expansion 447~: Tilde Expansion 448
$n: Parameter Expansion 449
$NAME: Variable Expansion 449
`cmd` Command Substitution 449
Job Control 450
Redirecting Standard Error 452dirs: Display the Contents of the Stack 450pushd: Push a Directory onto the Stack 451
popd: Remove a Directory from the Stack 451
* ? []: Filename Substitution 452
Filename Completion 453
Variables 454
Control Structures 465Variable Substitution 454String Variables 455
Arrays of String Variables 456
Numeric Variables 456
Braces 460Expressions 457Arrays of Numeric Variables 459
Special Variable Forms 460
Shell Variables 460Reading User Input 460Shell Variables That Take on Values 461Shell Variables That Act as Switches 463
if 465goto 466
Interrupt Handling 466
if...then...else 467foreach 468
while 470
break and continue 470
The Korn Shell and Advanced Shell Programming 479switch 471Builtins 472Summary 475
Review Exercises 476
Advanced Review Exercises 477
Korn Shell Basics 479Programming Tools 547Variables 481Running Scripts 480Startup Files 480
Commands That Are Symbols 480
Builtins 492Variable Attributes 481Locality of Variables 483
Arithmetic 489
Assignments 489Expressions 490
Operators 490
Command-Line Editing 510Control Structures 493Option Processing 496select 494repeat 496
Input and Output 500getopts: Parse Options 498File Descriptors 503read: Accept User Input 500print: Display Output 502
Functions 506
Built-in Commands 507
Job Control 507alias: Shortcut for a Command 507
kill: Abort a Process 508
whence: Display the Absolute
Pathname of a Utility 509trap: Catch a Signal 509
Command Processing 517Using the vi Command-Line Editor 511Pathname Listing 512Pathname Operations 512Pathname Completion 512
Pathname Expansion 513
Using the emacs Command-Line Editor 513Viewing the History List 515History 514
Using the vi Command-Line Editor
on Previous Commands 514fc: Display, Edit, and Reexecute Commands 515
Editing and Reexecuting Previous Commands 516
Reexecuting Previous Commands without Calling the Editor 517
Shell Programs 524Token Splitting 518Alias Substitution 521
Filename Expansion 521
Command Substitution 521
Parameter Expansion 522
Arithmetic Expansion 522
Filename Generation 522
Processing Quotation Marks 522
I/O Redirection and the Coprocess 523
Korn Shell Options (set) 539Program Structures 524A Programming Problem: makesccs 528Recursion 525Another Programming Problem: quiz 532
Summary 540
Review Exercises 544
Advanced Review Exercises 545
Programming in C 548Chapter 15Using Shared Libraries 555Checking Your Compiler 549A C Programming Example 550
Compiling and Linking a C Program 553
make: Keep a Set of Programs Current 558Fixing Broken Binaries 556Creating Shared Libraries 557
Using LD_PRELOAD 557
Debugging C Programs 564Implied Dependencies 559Macros 562
Threads 576lint: Find Errors in a Program 566The dbx Debugger 569gcc: Compiler Warning Options Find Errors in a Program 567
Symbolic Debuggers 568
Starting a Symbolic Debugger 569The gdb Debugger 573
Graphical Symbolic Debuggers 576System Calls 577
Source Code Management 579truss: Trace System Calls 578Controlling Processes 578
Accessing the Filesystem 578
Summary 586Evolution of an SCCS File 580Creating an SCCS File 581
Retrieving an SCCS File 583
Recording Changes to an SCCS File 584
Obtaining the History of an SCCS File 585
Restricting Access to SCCS Files 586
Review Exercises 587
Advanced Review Exercises 589
System Administration 591
Product Name 592The System Administrator and Superuser 592
Detailed Description of System Operation 597System Administration Tools 593Avoiding a Trojan Horse 594
Changing the Default PATH 595
kill: Terminate a Process 595
Important Files and Directories 608SPARC PROM Mode 598Checking Filesystem Integrity 603Solaris x86 Configuration Assistant 600Booting the Machine 600Booting the System 602Stage I 601Device Configuration Assistant 601
Stage II 601
Single-User Mode 603Maintenance 603
Turning the Power Off 607Multiuser Mode 605Going to Multiuser Mode 604Bringing the System Down 606Logging In 605Running a Program and Logging Out 606
Going to Single-User Mode 606Crashes 607Types of Files 619
Volume Management 623Ordinary Files, Directories, Links, and Inodes 619Symbolic Links 620
Special Files 620
Fifo Special Files (Named Pipes) 621Sockets 622
Major and Minor Device Numbers 622
Block and Character Devices 622
Raw Devices 623
Day-to-Day System Administration 625CDROM 624Floppy Disk 624
Problems 669Adding and Removing Users 625Automatically Mount Filesystems 649Adding and Removing Software Packages 627Add a New User 625Remove a User 626
Add a Group 626
admintool 627
Web Start 628
Patches 629
Backing Up Files 631
Add/Remove Devices: Reconfigure Reboot 634ufsdump, ufsrestore: Backup and Restore Files 632Add/Remove Drivers 635
Disk Capacity Planning/Partitioning 635
Add/Remove Printers 639format: Partitioning a Disk 636fdisk: Partitioning a Disk 638
Check Your Mail and Log Files 642Add a Local Printer 639Add a Remote Printer for Solaris 2.5 and Earlier 640
Add a Remote Printer for Solaris 2.6 and Above 640
Add a Printer Using admintool641
Remove a Printer 642
Schedule Routine Tasks 642
Install New Software 643
Install AnswerBook2 643
Install AnswerBook2 under Solaris 7645
Share Files with Other Machines 646
Share Filesystems 647Unshare Filesystems 648
Mount Remote Filesystems 648
hosts: List of Machines 656Procfs 654Unmount Remote Filesystems 652Miscellaneous Filesystem Commands 653
Network Services 656
Set Up Network Files 656netmasks: For a Subnetted Network 656
defaultrouter: Specify a Default Router 657
hostname.interface: Specify Network Hardware 657
resolv.conf: How to Resolve Hostnames 658NIS 657DNS: Domain Name Service 658
nsswitch.conf: Specify Order to Consult Services 658
Aliases 661sendmail: Set Up Mail 658PPP 658sendmail: Mail Client 659sendmail: Mail Server 660
System Reports 662sar: Report on System Activity 662iostat: Report I/O Statistics 664
vmstat: Report Virtual Memory Statistics 666
netstat: Report Network Statistics 667
mpstat: Report Multiple Processor Statistics 668
top: Report on Processes Using the Most Resources 669
Getting Information to Users 679When a User Cannot Log In 669When the System is Slow 671
lsof: Find Large, Open Files 673
Keeping a Machine Log 673
Keeping the System Secure 674
Monitoring Disk Usage 677ACL (Access Control List) 674Automated Security Enhancement Tools 676
Growing Files 677Disk Quota System 678
Removing Unused Space from a Directory 678
Summary 680
Review Exercises 680
Advanced Review Exercises 681
The
Solaris Utility Programs
sample
|
Very brief description of what the command does | 689 |
admin
|
Creates or changes the characteristics of an SCCS file | 691 |
at
|
Executes a shell script at a time you specify | 694 |
cal
|
Displays a calendar | 697 |
cat
|
Joins or displays files | 698 |
catman
|
Preformats and indexes man pages | 700 |
cc
|
Compiles C programs | 702 |
cd
|
Changes to another working directory | 707 |
chgrp
|
Changes the group associated with a file | 708 |
chmod
|
Changes the access mode of a file | 709 |
chown
|
Changes the owner of a file | 713 |
cmp
|
Checks two files to see if they differ | 714 |
comm
|
Compares sorted files | 716 |
compress
|
Compresses or decompresses files | 717 |
cp
|
Copies one or more files | 719 |
cpio
|
Creates an archive or restores files from an archive | 721 |
crontab
|
Schedules a command to run regularly at a specified time | 725 |
cut
|
Selects characters or fields from input lines | 727 |
date
|
Displays or sets the time and date | 729 |
dd
|
Copies a file from one device to another | 731 |
delta
|
Records changes in an SCCS-encoded file | 734 |
df
|
Displays the amount of available disk space | 736 |
dfmounts
|
Lists remotely mounted filesystems | 738 |
diff
|
Displays the differences between two files | 739 |
dircmp
|
Displays the differences between two directories | 742 |
du
|
Displays information on disk usage | 745 |
echo
|
Displays a message | 747 |
expr
|
Evaluates an expression | 749 |
file
|
Displays the classification of a file | 752 |
find
|
Finds files based on various criteria | 753 |
finger
|
Displays detailed information on users | 758 |
fmt
|
Formats text very simply | 760 |
fsck
|
Checks and repairs a filesystem | 761 |
ftp
|
Transfers files over a network | 765 |
gcc
|
Compiles gcc, g++, C, and C++ programs | 769 |
get
|
Creates an unencoded version of an SCCS file | 773 |
grep
|
Searches for a pattern in files | 777 |
gzip
|
Compresses or decompresses files | 781 |
head
|
Displays the beginning of a file | 784 |
kill
|
Terminates a process | 785 |
ln
|
Makes a link to a file | 787 |
lp
|
Prints files | 789 |
ls
|
Displays information about one or more files | 791 |
mailx
|
Sends and receives electronic mail | 797 |
make
|
Keeps a set of programs current | 803 |
man
|
Displays documentation for commands | 809 |
mesg
|
Enables/disables reception of messages | 812 |
mkdir
|
Makes a directory | 813 |
mkfile
|
Creates a file/swap area | 814 |
more
|
Displays a file, one screenful at a time | 815 |
mv
|
Moves (renames) a file | 818 |
nawk
|
Searches for and processes patterns in a file | 820 |
nice
|
Changes the priority of a command | 844 |
nohup
|
Runs a command that keeps running after you log out | 846 |
od
|
Dumps the contents of a file | 847 |
paste
|
Joins corresponding lines from files | 849 |
patch
|
Updates source code | 851 |
pg
|
Displays a file, one screenful at a time | 857 |
pr
|
Paginates files for printing | 860 |
prs
|
Prints a summary of the history of an SCCS file | 862 |
ps
|
Displays process status | 865 |
quot
|
Summarizes filesystem ownership information | 868 |
rcp
|
Copies one or more files to or from a remote computer | 870 |
rlogin
|
Logs in on a remote computer | 872 |
rm
|
Removes a file (deletes a link) | 873 |
rmdel
|
Removes a delta from an SCCS file | 875 |
rmdir
|
Removes a directory | 876 |
rsh
|
Executes commands on a remote computer | 877 |
rwho
|
Displays names of users on computers attached to a network | 879 |
sed
|
Edits a file (not interactively) | 880 |
sleep
|
Creates a process that sleeps for a specified interval | 890 |
sort
|
Sorts and/or merges files | 891 |
spell
|
Checks a file for spelling errors | 900 |
stty
|
Displays or sets terminal/emulator parameters | 902 |
swap
|
Administrates swap space | 907 |
tail
|
Displays the last part of a file | 909 |
tar
|
Stores or retrieves files to/from an archive file | 912 |
tee
|
Copies standard input to standard output and zero or more files | 915 |
telnet
|
Connects to a remote computer over a network | 916 |
test
|
Evaluates an expression | 918 |
touch
|
Updates access and modification time for a file | 922 |
tr
|
Replaces specified characters | 924 |
truss
|
Traces a process | 926 |
tty
|
Displays the pathname of the login device | 932 |
ufsdump
|
Backs up files or filesystems | 933 |
ufsrestore
|
Restores files from a ufsdump archive | 936 |
umask
|
Establishes or displays the file-creation permissions mask | 939 |
uniq
|
Displays lines of a file that are unique | 940 |
w
|
Displays information on system users | 942 |
wc
|
Displays the number of lines, words, and characters in a file | 944 |
which
|
Shows where a command is located in your path | 945 |
who
|
Displays names of users | 946 |
write
|
Sends a message to another user | 948 |
xargs
|
Converts standard output of one command into arguments for another | 949 |
Regular Expressions 953
Characters 953Appendix BDelimiters 953
Simple Strings 954
Special Characters 954
Rules 956Period 954Square Brackets 954
Asterisk 955
Caret and Dollar Sign 956
Quoting Special Characters 956
Bracketing Expressions 957Longest Match Possible 956Empty Regular Expressions 957
The Replacement String 958
Extended Regular Expressions 959Ampersand 958Quoted Digit 958
Summary 960
Help! 963
System Documentation and Information 963Appendix CHow Do I Find the Program I Want on the Internet? 967Where Can I Find More Documentation? 963Where Can I Look Up a Word? 964
What Are Some Useful Solaris Internet Sites? 965
What Are the Names of Some Solaris Newsgroups? 966
What Are Some Useful Mailing Lists? 966
Downloading, Installing, and Running Software 973Utility Programs 968Security Programs 969
Communication Programs 970
Getting Started with Solaris 987What Is the Difference Between Installing a Binary
and a Source Software File? 973How Do I Get a Program Off the Internet
and Run It on My Computer? 973How Do I Use ftp? 974How Do I Download gzip? 976
How Do I Install gzip? 977
Downloading (Using ftp), Compiling,
and Installing GNU make 979How Do I Unpack the Software Source Code? 981
How Do I Compile and Link the Software? 981
How Do I Install the Compiled Software? 984
Downloading a File Using a Browser
(and Installing It) 984Installing the File 986
How Do I Get Started with a Graphical User Interface (GUI)? 989How Do I Specify the Terminal I Am Using? 987How Do I Send Files to a Printer? 988
What Is the Name of the Machine I Will Log In On? 988
What Is My Login Name? 988
What Is My Password? 988
What Is the Termcap or Terminfo Name
for My Terminal? 988Which Shell Will I Be Using? 989
What Is a Window? 990What Is a Title Bar? 991What Is the Root Window? 991What Is a Button? 991
What Is a Slider? 991
What Is a Scroll Bar? 992
What Is an Icon? 992
Security 993
Encryption 993Appendix DNetwork Security 997Public Key Encryption 994Secret Key Encryption 995
Implementation 995
File Security 996
PGP 996
Mail Transfer Agents 997
Mail User Agents 997
Host Security 1000Network Security Solutions 998Network Security Guidelines 999
Summary 1005Login Security 1002Remote Access Security 1003
Viruses and Worms 1004
Physical Security 1004
The POSIX Standards 1007
POSIX.1 1007Glossary 1025POSIX.2 1009The POSIX.1 FIPS 1009POSIX.3 1020Localization 1010The POSIX Shell 1012
Utilities for Portable Shell Applications 1013
The User Portability Utilities Option (UPE) 1018cksum 1015command 1015
getconf 1015
locale 1016
localedef 1017
logger 1017
mkfifo 1017
pathchk 1017
pax 1018
printf 1018
Software Development Utilities 1019
POSIX.4 1020
POSIX.5 1021
POSIX.9 1021
Draft POSIX Standards 1022System Administration 1021Profiles and POSIX Standards 1024Security 1022Networks 1023
Summary 1024
Index 1051