Forrest logo
tool overview
On this page you find all important commands for the CLI tool ncdu. If the command you are looking for is missing please ask our AI.

ncdu

Ncdu (NCurses Disk Usage) is a command-line tool used for analyzing disk usage in a terminal window. It provides a simple and intuitive interface that allows users to quickly navigate through directories and view disk usage statistics. Ncdu scans the specified directory recursively, calculating the disk usage of each file and folder it encounters. The output is displayed in a tree-like structure, with directories and subdirectories listed in descending order of their disk usage. Users can interact with the tool using keyboard shortcuts to navigate, expand or collapse directories, and sort the results by size, time, or name. Ncdu also offers various options and filters, allowing users to include or exclude specific file types or directories from the analysis. Furthermore, it provides a progress bar during the scanning process, which gives an estimated time to completion and updates in real-time. Ncdu can be used on various Unix-like systems, including Linux, macOS, and BSD. It is widely used by system administrators, developers, and general users to identify large files and directories, manage disk space, and optimize storage usage. Overall, Ncdu is a powerful command-line tool that offers an efficient and user-friendly way to inspect disk usage, helping users identify and manage storage-consuming elements effectively.

List of commands for ncdu:

  • ncdu:tldr:0b535 ncdu: Analyze a given directory.
    $ ncdu ${path-to-directory}
    try on your machine
    explain this command
  • ncdu:tldr:51b88 ncdu: Exclude files that match a pattern, argument can be given multiple times to add more patterns.
    $ ncdu --exclude '${*-txt}'
    try on your machine
    explain this command
  • ncdu:tldr:59a0e ncdu: Analyze the current working directory.
    $ ncdu
    try on your machine
    explain this command
  • ncdu:tldr:b8239 ncdu: Colorize output.
    $ ncdu --color ${select}
    try on your machine
    explain this command
  • ncdu:tldr:fcd02 ncdu: Save results to a file.
    $ ncdu -o ${filename}
    try on your machine
    explain this command
tool overview