enable
rose1 发表于 2020-09-07 09:01浏览次数:
在某些类似Unix的操作系统上,enable命令启用打印机,而disable命令禁用打印机。
On some Unix-like operating systems, the enable command enables a printer, and the disable command disables a printer.
目录:
1 enable 运行系统环境
2 enable 说明
3 enable 语法
4 enable 例子
enable 运行系统环境
enable 说明
enable启动命名的打印机或类。
disable停止命名的打印机或类。
enable starts the named printers or classes.
disable stops the named printers or classes.
enable 语法
enable printer
disable [-c] [-W] [ -r [ reason ] ] printer
选件
-c
|
取消当前正在打印的所有请求。该选项不能与-W选项一起使用。如果打印机是远程打印机,则-c选项将被静默忽略。
|
-W
|
等待直到当前正在打印的请求完成,然后再禁用打印机。此选项不能与-c选项一起使用。如果打印机是远程打印机,则-W选项将被静默忽略。
|
-r reason
|
分配禁用打印机的原因。此原因适用于所有指定的打印机。lpstat -p报告了此原因。原因应该用引号括起来,如果它包含空格。对于现有打印机,默认原因是“未知原因”,对于已添加到系统但尚未启用的打印机,默认原因是“新打印机”。
|
printer
|
要启用或禁用的打印机的名称。
|
enable printer
disable [-c] [-W] [ -r [ reason ] ] printer
Options
-c
|
Cancel any requests that are currently printing. This option cannot be used with the -W option. If the printer is remote, the -c option will be silently ignored.
|
-W
|
Wait until the request currently being printed is finished before disabling printer. This option cannot be used with the -c option. If the printer is remote, the -W option will be silently ignored.
|
-r reason
|
Assign a reason for the disabling of the printer(s). This reason applies to all printers specified. This reason is reported by lpstat -p. reason should be enclosed in quotes if it contains blanks. The default reason is "unknown reason" for the existing printer, and "new printer" for a printer added to the system but not yet enabled.
|
printer
|
The name of the printer to be enabled or disabled.
|
enable 例子
enable printit
启用打印机printit。
enable printit
Enable printer printit.