Use Dust to analyze disk usage
masterDust provides an intuitive, colored overview of disk usage. It automatically finds the largest subdirectories and files without needing manual depth or human-readable flags.
By default, it lists a number of entries roughly equal to your terminal height. You can customize this using the -n flag.
Basic Usage
dust: Analyze current directory.dust <dir>: Analyze a specific directory.dust <dir1> <dir2>: Analyze multiple directories.
Common Tasks
- Show more/fewer entries: Use
-n <number>(e.g.,dust -n 50). - Show only directories:
dust -D - Show only files:
dust -F - Show full paths:
dust -p - Show specific depth:
dust -d <depth> - Filter by size:
dust -z <size>(e.g.,dust -z 10Mto show only items larger than 10MB). - Filter by regex:
dust -e <regex>(include) ordust -v <regex>(exclude).
dust -n 30
dust -d 3
dust -z 10M