lpq
            
                rose1 发表于 2020-09-30 09:04浏览次数: 
            
         
        
            
                
                    
                        在类似Unix的操作系统上,lpq命令列出所有可用打印机的状态。
                     
                    
                        On Unix-like operating systems, the lpq command lists the status of all available printers.
                     
                                                         
                
             
            
                目录:
                
                    1  lpq 运行系统环境
                                            2  lpq 说明
                                            3  lpq 语法
                                            4  lpq 例子
                                     
             
            lpq 运行系统环境
            
                            lpq 说明
                
                    
                        
                            
	lpq显示指定打印机上的当前打印队列状态。如果未在命令行上指定打印机或类,则将显示在默认目标上排队的作业。
	使用+ interval选项可以连续报告队列中的作业,直到队列为空为止。作业列表每间隔秒显示一次。
                         
                        
                            
	lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line.
	The +interval option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every interval seconds.
                         
                                                                     
                    
                 
                            lpq 语法
                
                    
                        
                            lpq [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] 
    [ -a ] [ -l ] [ +interval ]
	选件
	
		
			| -E | 连接到服务器时强制加密。 | 
		
			| -P 目标[ /实例] | 指定备用打印机或类名。 | 
		
			| -U 用户名 | 指定备用用户名。 | 
		
			| -a | 报告所有打印机上的作业。 | 
		
			| -h 服务器[ :端口] | 指定备用服务器。 | 
		
			| -l | 请求更详细(长)的报告格式。 | 
	
                         
                        
                            lpq [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] 
    [ -a ] [ -l ] [ +interval ]
	Options
	
		
			| -E | Forces encryption when connecting to the server. | 
		
			| -P destination[/instance] | Specifies an alternate printer or class name. | 
		
			| -U username | Specifies an alternate username. | 
		
			| -a | Reports jobs on all printers. | 
		
			| -h server[:port] | Specifies an alternate server. | 
		
			| -l | Requests a more verbose (long) reporting format. | 
	
                         
                                                                     
                    
                 
                            lpq 例子
                
                    
                        
                        
                            lpq -l
	Displays printer information in verbose format.