Difference between revisions of "Common Administration Task"

From rbachwiki
Jump to navigation Jump to search
Line 15: Line 15:
  lp -d printername /etc/host /etc/issue
  lp -d printername /etc/host /etc/issue
[[File:Lpoptions.png|thumb]]
[[File:Lpoptions.png|thumb]]
'''The lp command accepts information for standard inputs, thus you can place the lp command at the end of a pipe to print info'''
ls -la | lp -d printername
'''To see a list of print jobs in the queue'''
lpstat
'''Remove a print job from the queue'''
cancel jobid1 jobid2 # cancels 2 jobs
cancel -a printername
'''The file that contains the configuration information for each printer '''
/etc/cups/printers.conf
'''config for the cups deamon'''
/etc/cups/cupsd.conf
'''You can access the CUPS Web administration tool using a Web browser on TCP port 631 by navigating to http://servername:631,'''

Revision as of 20:42, 10 February 2019

Managing Printers=

print queue folder

/var/spool/cups

To see a list of all printers on the system and their status

lpstat -t
cupsaccept printername
cupsdisable printername
cupsreject

Print to a printer

lp -d printername /etc/inittab # this prints the inittab file
# the -d commandspecify the destination printer name
lpoptions -d printername # sets default printer

This information is stored in the /etc/cups/lpotions file Print multiple files

lp -d printername /etc/host /etc/issue
Lpoptions.png

The lp command accepts information for standard inputs, thus you can place the lp command at the end of a pipe to print info

ls -la | lp -d printername

To see a list of print jobs in the queue

lpstat

Remove a print job from the queue

cancel jobid1 jobid2 # cancels 2 jobs
cancel -a printername

The file that contains the configuration information for each printer

/etc/cups/printers.conf

config for the cups deamon

/etc/cups/cupsd.conf

You can access the CUPS Web administration tool using a Web browser on TCP port 631 by navigating to http://servername:631,