You can also use ncdu (available directly from the Ubuntu repos) which use the ncurses library for showing a graphical overview directly in the terminal.
Note that df -h will show you only remaining space on mounted partitions. Suppose there are NTFS and FAT32 partitions too before running it note that mount all the partitions. If Ubuntu is sole OS on your machine then I don't see any problem with df.
You can use two commands:
df
anddu
.df
- report file system disk space usageUsage works like such:
Which should output something like this:
The
-h
flag provides human readable output (which makes reading of the output - easier).du
- estimate file space usageA second tool is with
du
which is a slower approach but will give you a better break down of a per directory. Information on that can be found in How to determine where the biggest files/directories on my system are stored?There are several good command line tools for reporting disk usage. Use the one that's most helpful to you:
df
df is installed by default.
pydf
Column headers are colored.
discus
Column headers and progress bars are colored.
di
You can use this command to find out how much space files in your home directory (replace
~/
with/
for entire filesystem) and sort by largest filesTry
du -sh <dir>
.For example,
du -sh /home/mark
will show a summarised usage report in human-readable output for/home/mark
.GNOME System Monitor
If you prefer graphical
gnome-system-monitor
:Disk Usage Analyzer
The Disk Usage Analyzer counterpart for CLI would be
ncdu
.df -h
is your best bet (run it in the Terminal).ncdu
You can also use
ncdu
(available directly from the Ubuntu repos) which use the ncurses library for showing a graphical overview directly in the terminal.For example:
will analyze disk usage on root partition without crossing filesystem boundaries.
Note that
df -h
will show you only remaining space on mounted partitions. Suppose there are NTFS and FAT32 partitions too before running it note that mount all the partitions. If Ubuntu is sole OS on your machine then I don't see any problem withdf
.