Linux lpq命令

Linux 教程 · 2019-02-14 18:29:43

Linux lpq命令用于查看一个打印队列的状态,该程序可以查看打印机队列状态及其所包含的打印任务。

语法

lpq [l] [P] [user]

参数说明:

  • -P 指定一个打印机,否则使用默认打印机或环境变量PRINTER指定的打印机
  • -l 打印组成作业的所有文件的信息。。

实例

为系统默认的打印机printer的一个空队列。

$ lpq  
printer is ready  
no entries 

如果事先并未指定打印机(使用-P选项),系统便会显示默认的打印机。如果向打印机发送打印任务,然后查看打印队列,便会看到如下列表。

$ ls *.txt | pr -3 | lp  
request id is printer-603 (1 file(s))  
[me@linuxbox ~]$ lpq  
printer is ready and printing  
Rank    Owner   Job     File(s)                         Total Size  
active  me      603     (stdin)        

点击查看所有 Linux 教程 文章: https://codercto.com/courses/l/14.html

查看所有标签

On LISP

On LISP

Paul Graham / Prentice Hall / 09 September, 1993 / $52.00

On Lisp is a comprehensive study of advanced Lisp techniques, with bottom-up programming as the unifying theme. It gives the first complete description of macros and macro applications. The book also ......一起来看看 《On LISP》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具