Documentation Home
> Solaris Advanced User's Guide
Solaris Advanced User's Guide
Book Information
Index
Numbers and Symbols
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Preface
Chapter 1 Differences Between Command Line Interface and Graphical User Interface
Command Line Interface
Graphical User Interfaces
Common Desktop Environment
GNOME Desktop
Chapter 2 Logging In and Using Basic SunOS Commands
Logging In
Your Login Shell
Logging Out
Keyboard Equivalents
Command Prompt
Typing Commands
Correcting Typing Mistakes
Typing Multiple Commands and Long Commands
Repeating Previous Commands
Repeating Commands in the Bourne Again, C, TC, or Z Shell
Repeating Commands in the Korn Shell
Adding Command Options
Redirecting and Piping Command Output
Running Commands in the Background
Using a Password
Changing Your Password
Password Aging
Getting Help With OS Commands
Displaying Manual Pages With man
Displaying a One-line Summary With whatis
Keyword Lookup With apropos
Chapter 3 Working With Files and Directories
File Concepts
Using File Commands
Before You Begin
Creating a Test File
Listing Files (ls)
Copying Files (cp)
Moving and Renaming Files (mv)
Deleting Files (rm)
Displaying File Contents (more, cat)
Displaying File Type (file)
Directories and Hierarchy
Directory Hierarchy
Printing the Working Directory (pwd)
Your Home Directory
Changing the Working Directory (cd)
Creating a Directory (mkdir)
Relative Path Names
Moving and Renaming Directories
Copying Directories
Removing Directories (rmdir)
Viewing Differences Between Files (diff)
Comparing Three Different Files (diff3)
Using bdiff on Large Files
Searching for Files (find)
File and Directory Security
Displaying Permissions and Status (ls -l)
Listing Hidden Files (ls -a)
Changing Permissions (chmod)
Setting Absolute Permissions
Chapter 4 Searching Files
Searching for Patterns With grep
grep as a Filter
grep With Multiword Strings
Searching for Lines Without a Certain String
Using Regular Expressions With grep
Searching for Metacharacters
Single or Double Quotes on Command Lines
Chapter 5 Managing Processes and Disk Usage
Processes and PIDs
What Commands Are Running Now (ps)
Terminating Processes (pkill)
Managing Disk Storage
Displaying Disk Usage (df -k)
Displaying Directory Usage (du)
Chapter 6 Using the vi Editor
Starting vi
Creating a File
Status Line
Two Modes of vi
Entry Mode
Command Mode
Ending a Session
Saving Changes and Quitting vi
Saving
Saving and Quitting
Quitting Without Saving
Printing a File
Basic vi Commands
Moving Around in a File
Moving the Cursor
Moving With Arrow Keys
Moving One Word
Moving to Start or End of Line
Moving Down One Line
Moving Left
Moving Right
Moving to the Top
Moving to the Middle
Moving to the Bottom
Paging and Scrolling
Page Forward One Screen
Scroll Forward One-Half Screen
Page Backward One Screen
Scroll Backward One-Half Screen
Inserting Text
Append
Insert
Open Line
Changing Text
Changing a Word
Changing a Line
Substituting Character(s)
Replacing One Character
Undoing Changes
Undoing the Previous Command
Undoing Changes to a Line
Deleting Text
Deleting One Character
Deleting a Word or Part of a Word
Deleting a Line
Copying and Moving Text — Yank, Delete, and Put
Copying Lines
Moving Lines
Using a Count to Repeat Commands
Using ex Commands
Turning Line Numbers On and Off
Copying Lines
Moving Lines
Deleting Lines
Searching and Replacing With vi
Finding a Character String
Refining the Search
Replacing a Character String
Going to a Specific Line
Inserting One File Into Another
Editing Multiple Files
Summary of Basic vi Commands
Chapter 7 Using Mail
mailx Basics
Starting mailx
Sending Yourself a Sample Message
Reading Your Sample Message
Quitting mailx
Reading Messages
Deleting (and Undeleting) Messages
Printing Messages
Sending Messages
Undeliverable Messages
Canceling an Unsent Message
Adding Carbon and Blind Carbon Copies
Inserting a Copy of a Message or File
Inserting a Message
Inserting a File
Replying to a Message
Saving and Retrieving Messages
Saving and Copying Messages in Files
Saving and Copying Messages in Folders
Setting the Folder Directory
Designating Folders
Sending a Message Directly to a File or Folder
Reading Messages in Files and Folders
Using vi With mailx
Mail Aliases
Setting Up Mail Aliases in .mailrc
Setting Up Mail Aliases in /etc/aliases
Tilde Commands
Getting Help: Other mailx Commands
Chapter 8 Using Printers
Submitting Print Requests
Submitting Print Requests to the Default Printer
Submitting Print Requests Using a Printer Name
Requesting Notification When Printing Is Complete
Printing Multiple Copies
Summary Table of lp Options
Determining Printer Status
Checking on the Status of Your Print Requests
Checking Available Printers
Displaying All Status Information
Displaying Status for Printers
Summary Table of lpstat Options
Canceling a Print Request
Canceling a Print Request by ID Number
Canceling a Print Request by Printer Name
Chapter 9 Using the Network
Networking Concepts
Logging In Remotely (rlogin)
rlogin Without a Home Directory
rlogin as Someone Else
rlogin to an Unknown Machine
Aborting an rlogin Connection
Suspending an rlogin Connection
Verifying Your Location (who am i)
Copying Files Remotely (rcp)
Copying Files From a Remote Machine
Copying Files From Your Machine to Another
Executing Commands Remotely (rsh)
Viewing User Information (rusers)
Running Networked Applications
Using rlogin to Run a Networked Application
More About Security
Who Should Read this Section
Access Control Mechanisms
User-Based Access
Host-Based Access
Authorization Protocols
MIT-MAGIC-COOKIE-1
SUN-DES-1
Changing the Default Authorization Protocol
Manipulating Access to the Server
Client Authority File
Allowing Access When Using MIT-MAGIC-COOKIE-1
Allowing Access When Using SUN-DES-1
Running Clients Remotely, or Locally as Another User
Chapter 10 Customizing Your Working Environment
Modifying Initialization Files
Setting Environment Variables
User Profile
Setting the PATH Variable
Command Aliases
Changing Your Command Prompt
Bourne, Bourne Again, Korn, and Z Shells
C and TC Shells
Other Useful Variables
noclobber Variable
history Variable
Setting Default File Permissions
Appendix A Modifying the Keyboard
Disabling and Enabling the Compose Key
SPARC: Left-Handed Key Remapping
SPARC: Using the Remapping Script
lefty.data Script
SPARC: Undoing the Keyboard Remapping
nolefty.data Script
x86: Function Key and Control Key Remapping
x86: Using the Remapping Script
fkeys Script
x86: Undoing the Keyboard Remapping
normal Script
© 2010, Oracle Corporation and/or its affiliates