Linux Commands Examples

A great documentation place for Linux commands


manage printer jobs in a spooler-independent fashion

see also : foomatic-configure


foomatic-printjob [ -s spooler ] [ -P queuename ] [ -o option1=value1 -o option2 ... ] [ -i ] [ file1 file2 ... ]

foomatic-printjob -Q [ -s spooler ] [ -P queuename ] [ -i ] [ -a ] [ user1 user2 ... ]

foomatic-printjob -R [ -s spooler ] [ -P queuename ] [ -i ] [ - | jobid1 jobid2 ... ]

foomatic-printjob -C [ -s spooler ] [ -i ] command [ arguments ]

foomatic-printjob -S [ -s spooler ] [ -i ]

foomatic-printjob -h [ -s spooler ] [ -P queuename ] [ -i ]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


foomatic-printjob provides a spooler-independent interface to creating and managing printer jobs and print queues. Note that the first argument changes the mode of the command, as it combines the functionality of several System V-style printing commands.



Explicit spooler type.


Any commands specified should apply to this queue instead of the default.


Set option to value


Set the switch option


Print n copies

file1  file2  ...

Files to be printed, when no file is given, standard input will be printed


Query the jobs in a queue. If a list of users is specified, only those users’ jobs will be queried.

-Q -a

Query the jobs in all queues. If a list of users is specified, only those users’ jobs will be queried.

-R [ - | jobid1 jobid2 ... ]

Remove a job from a queue. Using - will remove all jobs.

-C command [ arguments ]

Execute control commands for queue/job manipulation. The commands are the ones of the BSD "lpc" utility. Use the control command "help" to get a list of supported commands. Note: the amount of commands varies with the spooler, but the same commands given under different spoolers do the same thing.


Interactive mode: You will be asked if foomatic-printjob is in doubt about something. Otherwise foomatic-printjob uses auto-detection or quits with an error.


Save the chosen spooler as the default spooler


Show this message or show a list of available options if a queue is specified


This manpage still needs some editing.

see also

foomatic-configure and the documentation for your print spooler.


Manfred Wassmann <> and Chris Lawrence <lawrencc[:at:]debian[:dot:]org> for the foomatic project using output from the associated binary.

How can this site be more helpful to YOU ?

give  feedback