Solaris 1.x to Solaris 2.x Transition Guide
只搜尋這本書
以 PDF 格式下載這本書

Quick Reference for Basic Changes

F

This appendix is a quick reference for changes in common commands, files and directories, and daemons and standard processes.
Table F-1

Basic Commands
SunOS Release 4.xSolaris 2.4Comments
lprlpBasic default print command
lpr -P<printer>lp -d<printer>Specifying a printer with the print command
lpqlpstat -oCheck the print queue of the default printer
lpq -P<printer>lpstat -o<printer>Check the status of a specific printer and list print IDs
lpstat -aDetermine which printers are available (in SunOS release 4.x, you would check the /etc/printcap file)
lprm <print job#>cancel <request ID>Cancel a print job
cancel <printer>Alternate method for canceling a currently active print job
ps -axps -efProcess status is the same, but some of the options have changed
pstat -sswap -sPrints information about swap space
Table F-2

Advanced Commands
SunOS Release 4.xSolaris 2.4Comments
exprotfsshare <resource>Used to make specified resource listed in user's /etc/dfs/dfstab available for remote mount
exportfs -ashareallOption to make all resources listed in user's /etc/dfs/dfstab available for mounting
exportfs -uunshare <resource>Used to make resources unavailable
mount -amountallMount all file systems specified in /etc/vfstab, where the mountall option is set
umount -aumountallUnmount all file systems in /etc/vfstab, other than root, /proc, /var, and /usr
showmount -ddfmounts <option>Lists mounted NFS file systems where option specifies machine name
showmount -edfshares <option>Lists shared (exported) NFS file systems
dumpufsdumpFor backing up file systems or specified files
restoreufsrestoreFor restoring files dumped to backup media
Table F-3

Files and Directories
SunOS Release 4.xSolaris 2.4Comments
/var/spool/mail/var/mailLocation for incoming mail
/etc/fstab/etc/vfstabFile system mount table
/etc/exports/etc/dfs/dfstabLists exported file systems
/etc/mtab/etc/mnttabList of currently mounted resources read by the /etc/mount command
/etc/xtab/etc/dfs/sharetabList of shareable resources
/usr/bin/usr/bin and
/usr/sbin
/usr/sbin is available with Solaris executables
/etc/aliases/etc/mail/aliasesNew location for local E-mail alias file
/etc/printcapNo longer existsCapability replaced by /usr/share/lib/terminfo and files in /etc/lp
/etc/passwd/etc/passwd
/etc/shadow
Capability is shared with counterpart, the /etc/shadow file,
which stores user's encrypted passwords and other information
Table F-4

Daemons and Standard Processes
SunOS Release 4.xSolaris 2.4Comments
/usr/lib/lpd/usr/lib/lp/lpschedPrint daemon
/usr/etc/rpc.lockd/usr/lib/nfs/lockdNetwork lock daemon
/usr/etc/rpc.mountd/usr/lib/nfs/mountdNFS mount request server
/usr/etc/ypbind/usr/lib/netsvc/yp/ypbindNIS binder process
/usr/etc/nfsd/usr/lib/nfs/nfsdNFS daemon
/usr/etc/biodNo longer existsBlock I/O daemon

Capability implemented in the kernel

/etc/rc and
/etc/rc.local
/etc/rc[012356S].dSystem initialization scripts