無聊的 一個用 Golang 編寫的精美的 Linux 磁盤監控實用程序。 它在 MIT 許可證下發布,支持 Linux、macOS、BSD 甚至 Windows。
達夫的特點
提供所有已安裝設備的良好概覽 能夠指定目錄/文件名並查看該安裝點上有多少可用空間 更改/刪除輸出中的列 列出終端的 inode 信息 如果您的主題未被自動檢測到
如何在 Debian/Ubuntu Linux 上安裝 duf
使用 wget 或 curl 命令下載文件。
$ https://github.com/muesli/duf/releases/download/v0.6.2/checksums.txt $ wget https://github.com/muesli/duf/releases/download/v0.6.2/duf_0.6.2_linux_amd64.deb $ sha256sum --ignore-missing -c checksums.txt
然後在您的 Debian 或 Linux Mint 包中安裝 duf .deb 包。
$ sudo apt install ./duf_0.6.2_linux_amd64.deb
如何使用 duf 磁盤監控實用程序
現在通過從終端輸入 duf 來啟動應用程序。
如果您想一目了然地查看 duf 可用的所有命令,您可以鍵入:
$ duf --help 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

您可以通過將它們作為參數傳遞來僅打印特定的文件系統或設備。由於我們在單個分區上創建了機器,因此所有內容都安裝在根目錄 (/) 中。根據您的分區方案,您將看到不同的輸出。
$ duf /home /usr /opt $ duf /root/ $ duf /var/log
另一個例子是根據特定訂單的大小對輸出進行排序。您只需要輸入:
duf --sort size
輸出如下所示:

你可以通過 --all
指示虛假的、不可訪問的、重複的文件系統的標誌。
$ duf -all
您可以選擇僅打印特定列,繞過列名作為參數 --output
flag. Example:
$ duf --output used,size,avail,usage

你可以探索它 GitHub 頁面 有關更多命令和安裝說明,請參閱 .
你知道與此工具類似的東西嗎?請在下面的評論中告訴我們你的想法。