Ncdu is a simple disk usage analyzer that helps you check how storage is being used on your Android device. It provides an interactive terminal interface where you can scan directories, find large files, and analyze disk usage from Termux. You can use simple Ncdu commands to quickly check storage and manage disk usage from the terminal.
Here’s what you can do with Ncdu in Termux:
- Analyze disk usage.
- Scan directories.
- Find large files and folders.
- Export scan results.
- Exclude files and directories.
- Customize the terminal interface.
Install Ncdu in Termux
Below are the simple commands to install Ncdu in Termux. Copy and run each command one by one to install the tool.
Update Termux packages.
pkg update && pkg upgrade -yInstall Ncdu.
pkg install ncdu -yNcdu is now installed and ready to use.
Use Ncdu in Termux
After installing Ncdu, you can use different commands to scan directories and check disk usage directly from the Termux terminal.
Scan the current directory.
ncduNote: If Ncdu displays “Warning: terminal too small”, simply resize or maximize your Termux terminal window. You can also press i to ignore the warning and continue using Ncdu, or press q to quit the tool.
Display the Ncdu help menu.
ncdu -hUse the basic Ncdu command format.
ncdu <options> <directory>Scan a specific directory.
ncdu /path/to/directoryExport scanned directory data to a JSON file.
ncdu -o result.json <directory>Run Ncdu in read-only mode.
ncdu -r <directory>Show apparent file size instead of disk usage.
ncdu --apparent-size <directory>End Note
Ncdu is a useful tool for checking storage usage in Termux. It provides a simple terminal interface to scan directories and understand which files or folders are using the most space on your Android device.
