Solaris Advanced User's Guide
只搜尋這本書
以 PDF 格式下載這本書

.............................Contents


About This Book
xv

1. Logging In to SunOS
...and Starting OpenWindows 1
...Logging In 1
...Your Login Shell 2
...Logging Out 3
...Keyboard Equivalents 4
...OpenWindows Start-up Considerations 5
......The OPENWINHOME Environment Variable 6
......Using the Correct Start-Up File 7
...Starting the OpenWindows User Environment 9
......Displaying the OpenWindows Software 9
......If OpenWindows Won't Display 11
...Quitting the OpenWindows Environment 11
...Special OpenWindows Start-up Options 12
......Starting with Reduced Network Security 13
......Starting with Various Monitor Types 13
......SPARC Starting with Multiple Monitors 13

2. Basic SunOS Commands
17
...The Command Prompt 17
...Entering Commands 18
......Correcting Typing Mistakes 18
......Entering Multiple Commands and Long Commands 19
......Repeating Previous Commands 20
......Adding Command Options 21
......Redirecting and Piping Command Output 21
......Running Commands in the Background 23
...Getting Help with OS Commands 24
......Displaying Manual Pages with man 24
......Displaying a One-line Summary with whatis 24
......Keyword Lookup with apropos 25

3. Working with Files and Directories
27
...File Concepts 27
...Using File Commands 28
......Before You Begin 28
......Creating a Test File 29
......Listing Files (ls) 29
......Copying Files (cp) 29
......Moving and Renaming Files (mv) 30
......Deleting Files (rm) 30
......Displaying File Contents (more, cat) 31
......Displaying File Type (file) 32
...Directories and Hierarchy 32
......Directory Hierarchy 32
......Print Working Directory (pwd) 33
......Your Home Directory 34
......Change Working Directory (cd) 34
......Creating a Directory (mkdir) 36
......Relative Path Names 36
......Moving and Renaming Directories 37
......Copying Directories 37
......Removing Directories (rmdir) 38
...Looking at Differences Between Files (diff) 39
......Comparing Three Different Files (diff3) 41
......Using bdiff on Large Files 41
...Looking Up Files (find) 41
...File and Directory Security 44
......Displaying Permissions and Status (ls -l) 45
......Listing "Hidden" Files (ls -a) 46
......Changing Permissions (chmod) 47
......Setting Absolute Permissions 50

4. Searching Files
55
...Searching for Patterns with grep 55
......grep as a Filter 56
......grep with Multi-Word Strings 57
......Searching for Lines without a Certain String 58
......More on grep 58
......Searching for Metacharacters 60
......Single or Double Quotes on Command Lines 61

5. Passwords, Processes,
...and Disk Storage 63
...Using a Password 63
......Changing Your Password 64
......Password Aging 65
...Processes and PIDs 66
......What Commands Are Running Now (ps) 66
......Terminating Processes (kill) 67
...Managing Disk Storage 68
......Displaying Disk Usage (df -k) 68
......Displaying Directory Usage (du) 68

6. Using the vi Editor
69
...Starting vi 70
......Creating a File 70
......The Status Line 71
...The Two Modes of vi 71
......Entry Mode 71
......Command Mode 72
...Ending a Session 73
......Saving Changes and Quitting vi 73
...Printing a File 75
...Basic vi Commands 75
......Moving Around in a File 75
......Inserting Text 78
......Changing Text 79
......Undoing Changes 80
......Deleting Text 81
......Copying and Moving Text -- Yank, Delete, and Put 82
......Using a Count to Repeat Commands 84
...Using ex Commands 84
......Turning Line Numbers On and Off 84
......Copying Lines 85
......Moving Lines 86
......Deleting Lines 87
...Searching and Replacing with vi 87
......Finding a Character String 87
......Refining the Search 88
......Replacing a Character String 89
......Going to a Specific Line 90
...Inserting One File into Another 91
...Editing Multiple Files 91
......Editing a Series of Files 92
......Copying Lines Between Files 92
...Setting vi Parameters 93
...Recovering from a Crash 93
...Summary of Basic vi Commands 93

7. Using Mail
97
...mailx Basics 97
......Starting mailx 98
......Sending Yourself a Sample Letter 98
......Reading Your Sample Letter 100
......Quitting mailx 101
...Reading Letters 102
...Deleting (and Undeleting) Letters 103
...Printing Letters 105
...Sending Letters 105
......Undeliverable Letters 107
......Canceling an Unsent Letter 107
......Adding Carbon and Blind Carbon Copies 108
......Inserting a Copy of a Letter or File 109
......Replying to a Letter 110
...Saving and Retrieving Letters 110
......Saving and Copying Letters in Files 110
......Saving and Copying Letters in Folders 111
......Reading Letters in Files and Folders 113
...Using vi with mailx 114
...Mail Aliases 115
......Setting Up Mail Aliases in .mailrc 115
......Setting Up Mail Aliases in /etc/aliases 117
...Tilde Commands 121
...Getting Help: Other mailx Commands 122

8. Using Printers
123
...Submitting Print Requests 123
......Submitting Print Requests to the Default Printer 124
......Submitting Print Requests Using a Printer Name 124
......Requesting Notification when Printing is Complete 125
......Printing Multiple Copies 126
......Summary Table of lp Options 126
...Determining Printer Status 127
......Checking on the Status of Your Print Requests 127
......Checking on Available Printers 128
......Displaying All Status Information 128
......Displaying Status for Printers 129
......Displaying Printer Characteristics 130
......Summary Table of lpstat Options 131
...Canceling a Print Request 132
......Canceling a Print Request by ID Number 133
......Canceling a Print Request by Printer Name 133

9. Using the Network
135
...Networking Concepts 135
...Logging In Remotely (rlogin) 136
......rlogin without a Home Directory 137
......rlogin as Someone Else 137
......rlogin to an Unknown Machine 138
......Aborting an rlogin Connection 138
......Suspending an rlogin Connection 139
......Verifying Your Location (who am i) 140
...Copying Files Remotely (rcp) 141
......Copying from Another Machine to Yours 141
......Copying from Your Machine to Another 142
...Executing Commands Remotely (rsh) 142
...Viewing User Information (rusers) 143

10. Customizing Your
...Working Environment 145
...Initialization Files 146
...Environment Variables 147
......The User Profile 147
......Setting the PATH Variable 149
......Aliases (C Shell Only) 150
......Changing Your Command Prompt 151
......Other Useful Variables 152
...Setting Default File Permissions 153
...Customizing OpenWindows Fonts 155
......Specifying the Font Style and Point Size 155
......Listing the Available Fonts 158
...Calibrating Your Color Monitor 159
......Monitor Calibration Concepts 159
......Adjusting Your Viewing Environment 161
......Connecting the Calibrator Puck 165
......Running Calibrator Tool 165
......Error Messages 171

A. Migrating to OpenWindows Version 3.3, or Later Versions .
175
...SPARC Migrating from the SunView Environment 175
......SPARC The .defaults and .Xdefaults Files 175
...Migrating from a pre-Version 3.3 OpenWindows Environment 176
......The OPENWINHOME Environment Variable 176
......The .xinitrc File 177
......Using the Correct Start-up File 178
......Workspace Properties 179
......Customizing the Workspace Menu 179

B. Making the Transition to Solaris 2.5
181
...SPARC Making the Transition from SunOS 4.x 182
......SPARC Changes Affecting SunOS 4.x Users 182
......SPARC Changes Affecting SunOS 4.x System Administrators
........183
......SPARC Compatibility with SunOS 4.x Releases for SPARC
........Systems 184
...x86 Making the Transition from Solaris 2.1 for x86 186
......x86 Changes affecting Users 186
......x86 Changes affecting System Administrators 186
......x86 Solaris 2.5 System Administration Tools 187

C. Modifying the Keyboard
189
...Disabling/Enabling the Compose Key 189
...SPARC Left-Handed Key Remapping 190
......SPARC Using the Remapping Script 190
......SPARC Undoing the Keyboard Remapping 192
...x86 Function Key and Control Key Remapping 194
......x86 Using the Remapping Script 194

D. Running Networked Applications
199
...Using rlogin to Run a Networked Application 200
...More About Security 201
......Who Should Read this Section 202
......Access Control Mechanisms 202
......Authorization Protocols 203
......Manipulating Access to the Server 205
......Running Clients Remotely, or Locally as Another User 208

E. SPARC -- DECnet Internetworking (DNI)
211
...Setting Up DECnet Internetworking 212
...Displaying a Remote Client on an OpenWindows Machine 213
...Displaying a Remote Client on a VAX 213
F. Managing Your System 217
...Starting Admintool 218
......Adding Yourself to the sysadmin Group 219
...Using Admintool to Perform Common Tasks 220
......About Managing Hosts 220
......About Managing Printers 221
......About Managing Serial Ports 222

G. Using PCMCIA Cards
223
...Introduction 223
......Support Requirements 224
......Other Information Sources 224
...Using a PCMCIA Memory Card 225
......File Copying Methods 225
......Write-Protect Mode 225
......PCMCIA Memory Cards and Power Management's
........Resume/Suspend Feature 226
...Copying Files with the tar Command 227
......Copying Files 230
...Copying Files with Volume Management Enabled 232
......Copying Files 237
...Copying Files with Volume Management Disabled 239
......Copying Files 242
...Using a PCMCIA Serial/ModemCard 243
......PCMCIA Serial/Modem Card Device Names 243
......PCMCIA Serial/Modem Cards and Power Management's
........Resume/Suspend Feature 243

Index
245