<body> <!-- www.mybloglog.com --> <script type='text/javascript' src='http://track3.mybloglog.com/js/jsserv.php?mblID=2008020909412660'></script> <!-- www.mybloglog.com -->

Unix command | Unix administrator

Unix | Linux | Solaris | Hp-Ux | Xen ... what the fsck, is sar. Why not use vmstat. Is prstat better than top? Bash, korn, c shell, sea shell? root passwd shadow, su - ssp. Time to mount the nfs and starts with UNIX hosting, much more easier on Linux hosting.

Unix printing services

Thursday, December 20, 2007

1. Below are some example of using some printer command, assuming our printer name is dcp.

to print /etc/hosts files on dcp printer
# lp -d dcp /etc/hosts

check the print queue on all connected printer
# /usr/ucb/lpq
or
# lpstat
# lpstat –o all

check print queue on dcp printer
# /usr/ucb/lpq -P dcp

delete print queue on dcp printer (root password is required)
# /usr/ucb/lprm -P dcp

2. Printer configuration
printer configuration will be stored in /etc/printer.conf
# more /etc/printer.conf

all connected printer summary
# lpstat -s

check the dcp printer server (print server)
# lpstat -v dcp

changing printer server (root password is required)
# lpadmin -p dcp -s pethsv15\!dcp
lpadmin –p -s \!
posted by MML, 4:15 AM

0 Comments:

Add a comment