相比于 df 更加美观清晰的磁盘使用状态查看工具。其项目主页是:muesli/duf

1 安装

在 Linux 环境下,尤其是我常用的 Ubuntu 中,duf 无法通过 apt 直接安装,而是需要从 Github 上下载已经提前编译好的包。

以现在最新的版本 0.6.2 为例:

1
2
wget https://github.com/muesli/duf/releases/download/v0.6.2/duf_0.6.2_linux_amd64.deb
sudo dpkg -i ./duf_0.6.2_linux_amd64.deb

2 使用方法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Usage of duf:
-all
include pseudo, duplicate, inaccessible file systems
-hide string
hide specific devices, separated with commas:
local, network, fuse, special, loops, binds
-hide-fs string
hide specific filesystems, separated with commas
-inodes
list inode information instead of block usage
-json
output all devices in JSON format
-only string
show only specific devices, separated with commas:
local, network, fuse, special, loops, binds
-only-fs string
only specific filesystems, separated with commas
-output string
output fields: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem
-sort string
sort output by: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem (default "mountpoint")
-style string
style: unicode, ascii (default "unicode")
-theme string
color themes: dark, light (default "dark")
-version
display version
-warnings
output all warnings to STDERR
-width uint
max output width