Dust in Termux – A Simple Disk Usage Analyzer

Dust is a simple command-line tool for checking storage usage on your device. It shows the size of files and folders in an easy-to-read tree format. You can use Dust to find large files, check folder sizes, filter files, and explore your storage. You can run simple commands to see where your storage space is being used.

Here’s what you can do with Dust in Termux:

  • Check disk space usage.
  • Find large files and directories.
  • Display directory sizes in a tree format.
  • Set the depth of the directory tree.
  • Show a specific number of large entries.
  • Ignore hidden files.
  • Filter files using patterns.
  • Show only files or directories.
  • Display file types.
  • Export the directory tree as JSON.

Install Dust in Termux

You only need one command to install Dust in Termux. Run the command below to install it.

Update Termux packages.

pkg update && pkg upgrade -y

Install Dust.

pkg install dust

Dust is now installed and ready to use.

Use Dust in Termux

After installing Dust, you can use different commands to check storage usage and find files that take up more space.

Check the current directory.

dust

Check a specific directory.

dust /data/data/com.termux/files/home

Show a specific directory depth.

dust -d 2

Show the 10 largest entries.

dust -n 10

Display full paths.

dust -p

Ignore a specific directory.

dust -X node_modules

Dereference symbolic links.

dust -L

Only count files on the same filesystem.

dust -x

Use apparent file size instead of disk blocks.

dust -s

Reverse the tree order.

dust -r

Disable colors.

dust -c

Disable percentage bars.

dust -b

Move percentage bars to the right.

dust -B

Set a minimum file size.

dust -z 10M

Use screen-reader mode.

dust -R

Hide the total row.

dust --skip-total

Show the number of child files instead of disk size.

dust -f

Ignore hidden files.

dust -i

Exclude files using a regular expression.

dust -v "\.png$"

Show only files matching a pattern.

dust -e "\.jpg$"

Show only selected file types.

dust -t

Show only directories.

dust -D

Show only files.

dust -F

Set the terminal width.

dust -w 100

Disable the progress indicator.

dust -P

Show errors while scanning.

dust --print-errors

Change the output size format.

dust -o mb

Display the directory tree as JSON.

dust -j

Check files by modification time.

dust -M 7

Check files by access time.

dust -A 7

Check files by change time.

dust -y 7

Show the help menu.

dust --help

Display the installed version.

dust --version

You can combine different options for more detailed results. For example, the following command shows the 10 largest entries with a directory depth of 2:

dust -d 2 -n 10

End Note

Dust is a simple tool for checking storage usage in Termux. It shows files and folders with their sizes in a clear tree format. You can use different options to filter results, find large files, and explore directories. It is useful for keeping track of storage space from the terminal.

SHARE THIS POST: