Ubuntu Linux, like all unix varieties, includes the du command line utility. du stands for Disk Usage, as I’m sure you assumed.
Go ahead, just type the command in your home directory:
It shows you a very verbose output by default, which isn’t always extremely useful. Thankfully it also includes a lot of extra options.
To find the total size of files and folders in our current directory, listed by MB:
geek@ubuntu-desktop:~$ du -s -m *
Now we are getting somewhere. That’s some pretty useful output.