> 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/man1/lsvfs.1.md).

# lsvfs.1

`lsvfs` — 列出已安装的虚拟文件系统

## 名称

`lsvfs`

## 概要

`lsvfs [vfsname ...]`

## 描述

`lsvfs` 命令列出当前已加载的虚拟文件系统模块的信息。当给定 `vfsname` 参数时，`lsvfs` 列出指定 VFS 模块的信息；否则，`lsvfs` 列出所有当前已加载的模块。所列信息如下：

**Filesystem** 文件系统名称，与 mount(2) 的 `type` 参数和 [mount(8)](/man/man8/mount.8.md) 的 `-t` 选项所使用的名称相同 **Num** 文件系统类型编号。 **Refs** 此 VFS 的引用数，即当前已挂载的此类型文件系统数量 **Flags** 标志位。

## 实例

显示 `ufs` 和 [devfs(4)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man4/devfs.4.md) 文件系统的信息，并检查前者的挂载数量：

```sh
$ lsvfs ufs devfs
Filesystem                              Num  Refs  Flags
-------------------------------- ---------- -----  ---------------
ufs                              0x00000035     2
devfs                            0x00000071     1  synthetic, jail
$ mount -t ufs | wc -l
       2
```

## 参见

mount(2), getvfsbyname(3), [mount(8)](/man/man8/mount.8.md)

## 历史

`lsvfs` 命令出现于 FreeBSD 2.0。


---

# 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/man1/lsvfs.1.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.
