# lpr

将文件发送给指定打印机进行打印

## 补充说明

**lpr命令** 用于将文件发送给指定打印机进行打印，如果不指定目标打印机，则使用默认打印机。

### 语法

```
lpr(选项)(参数)
```

### 选项

```
-E：与打印服务器连接时强制使用加密；
-H：指定可选的打印服务器；
-C：指定打印任务的名称；
-P：指定接受打印任务的目标打印机；
-U：指定可选的用户名；
-#：指定打印的份数；
-h：关闭banner打印；
-m：打印完成后发送E-mail；
-r：打印完成后删除文件。
```

### 参数

文件：需打印的文件。

### 实例

将man1和man2送到打印机lp进行打印：

```
lpr -P lp man1 man2
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/lpr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
