Appendix F Quick Reference for Basic Changes
This appendix is a quick reference for changes in common commands, files and directories, and daemons and standard processes.
Summary Tables
Table F-1 Basic Commands
|
SunOS release 4
|
Solaris 7
|
Comments
|
|
lpr
|
lp
|
Basic default print command
|
|
lpr -P printer
|
lp -d printer
|
Specifying a printer with the print command
|
|
lpq
|
lpstat -o
|
Check 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 -a
|
Determine which printers are available (in the SunOS release 4 software, 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 -ax
|
ps -ef
|
Process status is the same but some of the options have changed
|
|
pstat -s
|
swap -s
|
Prints information about swap space
|
Table F-2 Advanced Commands
|
SunOS release 4
|
Solaris 7
|
Comments
|
|
dump
|
ufsdump
|
For backing up file systems or specified files
|
|
exportfs
|
share resources
|
Used to make specified resource listed in user's /etc/dfs/dfstab available for remote mount
|
|
exportfs -a
|
shareall
|
Option to make all resources listed in user's /etc/dfs/dfstab available for mounting
|
|
exportfs -u
|
unshare resource
|
Used to make resources unavailable
|
|
mount -a
|
mountall
|
Mount all file systems specified in /etc/vfstab, where the mountall option is set
|
|
restore
|
ufsrestore
|
For restoring files dumped to backup media
|
|
showmount -d
|
dfmounts option
|
Lists mounted NFS file systems where option specifies machine name
|
|
showmount -e
|
dfshares option
|
Lists shared (exported) NFS file systems
|
|
umount -a
|
umountall
|
Unmount all file systems in /etc/vfstab, other than root, /proc, /var, and /usr
|
Table F-3 Files and Directories
|
SunOS release 4
|
Solaris 7
|
Comments
|
|
/var/spool/mail
|
/var/mail
|
Location for incoming mail
|
|
/etc/fstab
|
/etc/vfstab
|
File system mount table
|
|
/etc/exports
|
/etc/dfs/dfstab
|
Lists exported file systems
|
|
/etc/mtab
|
/etc/mnttab
|
List of currently mounted resources read by the /etc/mount command
|
|
/etc/xtab
|
/etc/dfs/sharetab
|
List of shareable resources
|
|
/usr/bin
|
/usr/bin and /usr/sbin
|
/usr/sbin is
available with Solaris executables
|
|
/etc/aliases
|
/etc/mail/aliases
|
New location for local e-mail alias file
|
|
/etc/printcap
|
No longer exists
|
Capability 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
|
Solaris 7
|
Comments
|
|
/usr/lib/lpd
|
/usr/lib/lp/lpsched
|
Print daemon
|
|
/usr/etc/rpc.lockd
|
/usr/lib/nfs/lockd
|
Network lock daemon
|
|
/usr/etc/rpc.mountd
|
/usr/lib/nfs/mountd
|
NFS mount request server
|
|
/usr/etc/ypbind
|
/usr/lib/netsvc/yp/ypbind
|
NIS binder process
|
|
/usr/etc/nfsd
|
/usr/lib/nfs/nfsd
|
NFS daemon
|
|
/usr/etc/biod
|
No longer exists
|
Block I/O daemon
Capability implemented in the kernel
|
|
/etc/rc and /etc/rc.local
|
/etc/rc[012356S].d
|
System initialization scripts
|
Table F-5 File and Command Differences
|
SunOS release 4
|
Solaris 7
|
|
ac
|
sar
|
|
add_services
|
pkgadd
|
|
arch
|
uname -m
|
|
bar
|
Use cpio -H bar to retrieve
|
|
biff -n
|
chmod -o-x /dev/tty
|
|
biff -y
|
chmod -o+x /dev/tty
|
|
cc
|
Not available
|
|
dbxtool
|
debugger
|
|
df
|
df -k
|
|
dketl
|
Not available
|
|
dkinfo
|
prtvtoc
|
|
du
|
du -k
|
|
dump
|
ufsdump
|
|
dumpfs
|
Not available
|
|
etherfind
|
snoop
|
|
exportfs
|
share
|
|
extract_files
|
Not available
|
|
extract_patch
|
Not available
|
|
extract_unbundled
|
pkgadd
|
|
fastboot
|
reboot or init -6
|
|
fasthalt
|
init -0
|
|
hostid
|
sysdef -h
|
|
hostname
|
uname -n
|
|
intr
|
Not available
|
|
leave
|
Use cron and at
|
|
lint
|
Not available
|
|
load
|
pkgadd
|
|
loadc
|
pkgadd
|
|
load_package
|
Not available
|
|
lpc
|
lpadmin
|
|
lpd
|
lpsched
|
|
lpq
|
lpstat
|
|
lpr
|
lp
|
|
lprm
|
cancel
|
|
lptest
|
Not available
|
|
mach
|
uname -p
|
|
modstat
|
mount -a
|
|
mount
|
mount -F fstype [options]
|
|
mountall
|
modinfo
|
|
mount_tfs
|
mount -F fstype
|
|
pax
|
cpio
|
|
paxcpio
|
cpio
|
|
portmap
|
rpcbind
|
|
printenv
|
env
|
|
ps -a
|
ps -e
|
|
ps -aux
|
ps -el
|
|
pstat
|
sar
|
|
pstat -s
|
swap -s
|
|
rdump
|
ufsdump
|
|
restore
|
ufsrestore
|
|
rm_client
|
admintool
|
|
rm_services
|
Not available
|
|
rpc.etherd
|
Not available
|
|
rpc.lockd
|
lockd
|
|
rpc.mountd
|
mountd
|
|
rpc.read
|
Not available
|
|
rpc.rquotad
|
Not available
|
|
rpc.statd
|
statd
|
|
rpc.user_agentd
|
Not available
|
|
rpc.yppasswdd
|
Not available
|
|
rpc.ypupdated
|
ypupdated
|
|
rrestore
|
ufsrestore
|
|
rusage
|
Not available
|
|
startup
|
Not available
|
|
swapon
|
swap -a
|
|
sys-config
|
admintool
|
|
umountall
|
umount -a
|
|
umount-tfs
|
umount -F fstype
|
|
unload
|
pkgrm
|
|
update
|
fsflush
|
|
uptime
|
who -b
|
|
users
|
who -q
|
|
vipw
|
Not available
|
|
wall
|
Not available
|
|
whereis
|
Not available
|
|
whoami
|
id
|
|
ypbatchupd
|
Not available
|
|
yppasswd
|
Use nispasswd for NIS+
|
|
ypserv
|
Not
available
|