关于 ncdu
ncdu 提供一个交互式的终端界面来分析磁盘使用情况。用户可以浏览目录树,快速发现占用磁盘空间最多的文件和文件夹。
主要功能
- 01交互式浏览磁盘使用的目录树
- 02快速扫描指定目录的空间占用
- 03排序和过滤以识别大文件和高占用目录
适用场景
- 01诊断和清理占满的磁盘空间
- 02找出项目或系统中的空间浪费点
- 03定期审查存储使用情况并识别可删除的文件
安装
选择你的系统或包管理器,复制命令到终端运行。
$
安装完成后运行ncdu --version确认安装成功。
命令示例
常用命令按使用顺序排列。
01
02
README 原文English
来自项目 READMEREADME 暂无中文译文,以下为英文原文;中文介绍见上方。
ncdu 1.15.1
===========
DESCRIPTION
ncdu (NCurses Disk Usage) is a curses-based version of
the well-known 'du', and provides a fast way to see what
directories are using your disk space.
REQUIREMENTS
In order to compile and install ncdu, you need to have
at least...
- a POSIX-compliant operating system (Linux, BSD, etc)
- curses libraries and header files
INSTALL
The usual:
./configure --prefix=/usr
make
make install
If you're building directly from the git repository, make sure you have perl
(or rather, pod2man), pkg-config and GNU autoconf/automake installed, then
run 'autoreconf -i', and you're ready to continue with the usual ./configure
and make route.
COPYING
Copyright (c) 2007-2020 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.评论
支持 Markdown