Linux command
cupsctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show the current CUPS
cupsctl
Enable remote administration
cupsctl --remote-admin
Enable shared printers and
cupsctl --share-printers --remote-any
Turn on debug logging
cupsctl --debug-logging
Disable printer sharing
cupsctl --no-share-printers
Talk to a remote scheduler
cupsctl -E -h [server:631] --no-remote-admin
Set an arbitrary
cupsctl [MaxJobs=500]
说明
cupsctl updates the cupsd.conf file used by the CUPS scheduler. Running it with no arguments prints the current settings as _name_=_value_ pairs; passing options or _name_=_value_ arguments modifies the configuration and asks cupsd to reload. Because cupsctl communicates with cupsd over IPP rather than editing the file directly, it can be used to administer local or remote schedulers without requiring shell access to the server.
参数
- -E
- Enable encryption on the connection to the scheduler.
- -U _username_
- Authenticate as _username_ instead of the current user.
- -h _server_:_port_
- Connect to the scheduler on the given host and optional port.
- --debug-logging / --no-debug-logging
- Enable or disable debug logging to the error_log file.
- --remote-admin / --no-remote-admin
- Enable or disable remote administration.
- --remote-any / --no-remote-any
- Enable or disable printing from any address, including the Internet.
- --share-printers / --no-share-printers
- Enable or disable sharing of local printers with other computers.
- --user-cancel-any / --no-user-cancel-any
- Allow or prevent users from cancelling jobs owned by other users.
FAQ
What is the cupsctl command used for?
cupsctl updates the cupsd.conf file used by the CUPS scheduler. Running it with no arguments prints the current settings as _name_=_value_ pairs; passing options or _name_=_value_ arguments modifies the configuration and asks cupsd to reload. Because cupsctl communicates with cupsd over IPP rather than editing the file directly, it can be used to administer local or remote schedulers without requiring shell access to the server.
How do I run a basic cupsctl example?
Run `cupsctl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -E do in cupsctl?
Enable encryption on the connection to the scheduler.