Solaris Advanced User's Guide
  Buscar sólo este libro
Descargar este libro en PDF

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


About This Book
xiii

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 8
......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 12
......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) 38
......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) 46
......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 74
...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 86
...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 90
...Editing Multiple Files 91
......Editing a Series of Files 91
......Copying Lines Between Files 92
...Setting vi Parameters 92
...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 109
...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 120
...Getting Help: Other mailx Commands 121

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 136
...Logging In Remotely (rlogin) 136
......rlogin without a Home Directory 137
......rlogin as Someone Else 138
......rlogin to an Unknown Machine 138
......Aborting an rlogin Connection 139
......Suspending an rlogin Connection 140
......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 145
...Environment Variables 146
......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

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

B. Modifying the Keyboard
165
...Disabling/Enabling the Compose Key 165
...SPARC Left-Handed Key Remapping 166
......SPARC Using the Remapping Script 166
......SPARC Undoing the Keyboard Remapping 168

C. Running Networked Applications
171
...Using rlogin to Run a Networked Application 172
...More About Security 173
......Who Should Read this Section 174
......Access Control Mechanisms 174
......Authorization Protocols 175
......Manipulating Access to the Server 176
......Running Clients Remotely, or Locally as Another User 180

D. SPARC --DECnet Internetworking(DNI)
183
...Setting Up DECnet Internetworking 184
...Displaying a Remote Client on an OpenWindows Machine 185
...Displaying a Remote Client on a VAX 185

E. Setting Up Printers and Modems
189
...Setting Up a Modem on Your System 189
......For Additional Information About Modems 191
...Setting Up a Printer For Use On Your System 192
......For Additional Information About Printers 193

Index
195