-
LINUX > Les imprimantes
Liste des imprimantes:
lpstat -p -d
Status des imprimantes:
lpstat -a
Mettre le fichier file.ps in the printing queue of the printer ‘printername’:
lpr -P printername file.ps
Imprimer 2 copies
lpr -# 2 fichier
Imprimer 2 pages per side :
lpr -o number-up=2 -o sides=two-sides-looxford university pressng-edge filename
To remove a printing job:
lprm job-id
(job-id is the number reported by the
lprorlpstatcommands).If you use the same printer most of the time, you can create a script like the following in your
~/bin:#! /bin/sh export PRINTER=NeuroSpin-C-C2030i-145-2022 lpr -P "$PRINTER" -o media=A4 "$*"
En cas de problème, vérifier d’abord si
cupsest démarré :systemctl status cups.service
Ajouter ou Paramétrer une imprimante : dans le navigateur, taper
http://localhost:631