How do I check how much space each subdirectory uses in ubuntu
- User
How do I check how much space each subdirectory uses in ubuntu
Assistant
Here are a few ways to check how much space subdirectories use in Ubuntu:
- Use the
du(disk usage) command:
codedu -sh /path/to/parent/directory/*The
-sshows the total size for each subdirectory and the-hmakes the sizes human readable.- Use the
ncduutility to interactively view disk usage for directories:
codencdu /path/to/parent/directoryYou can navigate directories and see sizes in an ncurses interface.
-
Use the Baobab (Disk Usage Analyzer) graphical tool. It allows browsing directories and viewing sizes graphically. You can launch it and open any directory to analyze.
- Use the
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.