> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man5/shells.5.md).

# shells.5

`shells` — shell 数据库

## 名称

`shells`

## 描述

`shells` 文件包含系统上的 shell 列表。对于每种 shell 应单独占一行，由相对于 root 的 shell 路径组成。

`#` 表示注释开始；从 `#` 到行尾的字符不会被搜索该文件的例程解释。空行也会被忽略。

## 文件

**`/etc/shells`** `shells` 文件位于 **/etc**。

## 参见

getusershell(3)

## 历史

`shells` 文件格式出现于 4.3BSD。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man5/shells.5.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
