Ncdu

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful tool even on regular desktop systems. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.

Installation

USE flags

USE flags for sys-fs/ncdu NCurses Disk Usage

verify-sig Verify upstream signatures on distfiles

USE flags for sys-fs/ncdu-bin NCurses Disk Usage

verify-sig Verify upstream signatures on distfiles

Emerge

root #emerge --ask sys-fs/ncdu
root #emerge --ask sys-fs/ncdu-bin

Usage

Note
This article uses ncdu to refer to running ncdu, but installing sys-fs/ncdu-bin will use the command ncdu-bin

Directory usage statistics

To get basic directory usage statistics, run ncdu or ncdu-bin:

user $ncdu

Extended information

To enable reading additional information, such as ownership, permissions, and last modification time, use the -e argument:

user $ncdu -e

See also

  • Dust — a command-line tool similar to du that displays file and directory usage with a bar displaying its percentage.