📜  linux 打印到打印机 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:53.790000             🧑  作者: Mango

代码示例1
#setup the printer, might not be required
#see avalaible printers
lpstat -p
#set the printer as printing destination
lpadmin -d [printer-name]
#check if the printer has been set as destination
lpstat -d


#print
lp /file-to-print