You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
694 B

7 years ago
lpr
===
将文件发送给指定打印机进行打印
6 years ago
## 说明
7 years ago
5 years ago
**lpr命令** 用于将文件发送给指定打印机进行打印,如果不指定目标打印机,则使用默认打印机
7 years ago
5 years ago
## 选项
7 years ago
```
lpr(选项)(参数)
```
6 years ago
7 years ago
```
5 years ago
-E与打印服务器连接时强制使用加密
-H指定可选的打印服务器
-C指定打印任务的名称
-P指定接受打印任务的目标打印机
-U指定可选的用户名
-#:指定打印的份数
-h关闭banner打印
-m打印完成后发送E-mail
-r打印完成后删除文件
7 years ago
```
### 参数
5 years ago
文件:需打印的文件
7 years ago
5 years ago
## 实例
7 years ago
将man1和man2送到打印机lp进行打印
```
lpr -P lp man1 man2
```