Common Unix Printing System (CUPS)

CUPS is a widely-adopted printing system for Unix-like operating system including #Linux. It manages print queues in the local machine and can act as a client to pass those printing jobs to remote computers that works with the same underlying network printing protocol, 202205301808# (alternatives are SMB/CIFS and LPD).

All configuration files are stored inside the directory /etc/cups/. The file cups.conf contains lots of configuration options such as Browsing (enable browsing feature) and BrowsingAddress (where the browsing information should be sent and broadcasted). printers.conf on the other hand consists of printer definitions where additional options are further stored inside the directory /etc/cups/ppd with the format of 202205301819#.

Note: It is advised to just rely on the web-based utilities provided by CUPS package instead of manually editing the files unless you need to configure the web-based tool itself or the ability of CUPS to interface to other CUPS.

CUPS has its own set of smart filters that fit 202205301606# into the print queue which is especially useful in non-PostScript printer.

It has several programs such as lpr, lpq, lprm and lpc that help it on print queues management. All programs mentioned accepts the option -P where you can indicate which print queue should the program operate on.

The CLI tool lpr is particularly useful in #202205301557. The files to be printed usually submitted into the directory /var/spool/cups/ by the tool.

lpq can be used to display important print queue information such as number of files contained, file size, file owner, job number and so on.

The program lprm can removes job(s) depending on the syntax give. If it is passed with a number, it will treat that number as the job number of the job to be deleted. If a dash - is passed instead, the command will remove all the jobs related to the current user (for root user, it may remove all jobs).

lpc is used to control print queue.

Note: Use web interface instead for controlling the print queue.

Links to this page
  • Printing in Linux

    #202204081225 uses several unique print queues that can hold dozens of files waited to be printed. The files could be submitted by the program lpr which typically found in the directory /var/spool/cups. Print Queues are managed by 202205301742# (newer system that replaces LPD and LPRng) which will in turn sends them to the printers.

  • Internet Printing Protocol (IPP)

    IPP is a #202206151232 mainly used by #202205301742 to communicate to each other. It supports browsing feature which enable computer on a local network to exchange printer list automatically. This can be enable by setting the option Browsing in CUPS to On. It usually listens to the well-known port 631.

#graphics #floss #linux