Linux command
lpstat 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Show all printers
lpstat -p
Show default printer
lpstat -d
Show print jobs
lpstat
Show jobs for specific printer
lpstat -P [printer]
Show detailed printer info
lpstat -l -p [printer]
Show all status info
lpstat -t
Show accepting printers
lpstat -a
说明
lpstat displays status information about the current print service. It shows printers, print jobs, and system configuration for CUPS. The tool helps troubleshoot printing issues and monitor job queues.
参数
- -a _printers_
- Show accepting status.
- -d
- Show default destination.
- -o _dest_
- Show jobs.
- -p _printers_
- Show printer status.
- -r
- Show scheduler running.
- -s
- Show summary.
- -t
- Show all status.
- -u _users_
- Show user jobs.
- -l
- Long (detailed) output.
- -W _which_
- Show completed/not-completed jobs.
FAQ
What is the lpstat command used for?
lpstat displays status information about the current print service. It shows printers, print jobs, and system configuration for CUPS. The tool helps troubleshoot printing issues and monitor job queues.
How do I run a basic lpstat example?
Run `lpstat -p` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _printers_ do in lpstat?
Show accepting status.