|
Basic Commands:
|
||
|---|---|---|
| SunOS 4.x | Solaris 2.5 |
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 SunOS 4.x you would check the /etc/printcap file)
|
|
| lprm < print job# > | cancel < request ID > |
Cancel a print job
|
| cancel < printer > |
Alternate method for cancelling 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
|
| df | df -k |
Prints information about disk space
|
| du | du -k |
Prints information about disk usage
|
|
Advanced Commands:
|
||
| SunOS 4.x | Solaris 2.5 |
Comments
|
| exportfs | share < resource > |
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
|
| umount -a | umountall |
Unmount all file systems specified in /etc/vfstab, other than root, /proc, /var, and /usr
|
| showmount -d | dfmounts < option > |
Lists mounted NFS file systems where option specifies machine name
|
| showmount -e | dfshares < option > |
Lists shared (exported) NFS file systems
|
| dump | ufsdump |
For backing up file systems or specified files
|
| restore | ufsrestore |
For restoring files dumped to backup media
|
|
Files and Directories:
|
||
| SunOS 4.x | Solaris 2.5 |
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 and /etc/shadow |
Capability is shared with counterpart, the /etc/shadow file, which stores user's encrypted passwords and other information
|
Last modified: August 20, 1996