> 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/man8/quot.8.md).

# quot.8

`quot` — 显示每个用户占用的磁盘空间

## 名称

`quot`

## 概要

`quot [-cfknv] [-a | filesystem ...]`

## 描述

`quot` 工具用于从 ffs(7) 文件系统收集按用户统计的磁盘使用情况。

可用选项如下：

**`-a`** 包含所有已挂载文件系统的统计信息。

**`-c`** 显示三列内容：每个文件的块数、该类别的文件数，以及具有该大小或更小大小的文件所占块数的累计总数。此选项与 `-n` 选项互斥。

**`-f`** 对每个用户，显示文件数和占用空间。如果与 `-c` 或 `-n` 选项组合使用，此选项无效。

**`-k`** 强制以千字节为单位报告数字。默认情况下，所有大小以 512 字节块为单位报告。

**`-n`** 给定标准输入中的 inode 列表（每行还可包含一些可选数据），为每个文件打印出属主（以及输入行的其余部分）。不以数字开头的行将被忽略。这传统上用于管道中：

```sh
ls -i | sed -e 's,^  *,,' | sort -k 1n | quot -n filesystem
```

以获取文件及其属主的报告。此选项与 `-c` 选项互斥。

**`-v`** 除默认输出外，还显示在 30、60 和 90 天内未访问的文件数。如果与 `-c` 或 `-n` 选项组合使用，此选项无效。

## 环境变量

**`BLOCKSIZE`** 如果设置了环境变量 `BLOCKSIZE`，且未指定 `-k` 选项，块数将以该大小的块为单位显示。

## 参见

[df(1)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man1/df.1.md), quota(1), getmntinfo(3), [fstab(5)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man5/fstab.5.md), ffs(7), [mount(8)](/man/man8/mount.8.md)

## 历史

此 `quot` 实现由 Wolfgang Solfrank / TooLs GmbH 编写。

## 缺陷

ncheck（在上面的示例中比 `ls` `-i` 有用得多）在 FreeBSD 中不存在。


---

# 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/man8/quot.8.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.
