Disk Usage in Ubuntu CLI

If you would like to see disk usage on your Ubuntu computer, you can do so easily through the command line.

du -c -h file...

where file is the file (or files if more than one are specified) of which you want to see the disk usage.

If you would like to see free disk space, this is your best bet

df -h

This will present all the disks and such mounted on your system and provide statistics like total space, space used, and so on.

For more information, run the following on your Linux system

man du


man df

Or you may search for the manual for these commands through a search engine.

2 Responses to Disk Usage in Ubuntu CLI

  1. Reblogged this on arman belajar linux & networking and commented:
    Nice brief tutorial every Ubuntu beginners..

%d bloggers like this: