Disk usage
Managing your computer’s storage usage can be a tricky endeavor. Running out of disk space can cause stability issues and even data loss. This chapter isn’t intended to teach you how to be a systems administrator, but it is essential to determine where these sorts of problems could be and how to take corrective action.
Your desktop system likely only has one disk, but you could have multiple. If you followed the guided installation as suggested, you would have a nice, simple storage layout, which is the scenario we will assume in this part of the chapter.
Report filesystem space usage: df
The df
command shows information about the space used and available on your filesystem.
The df
command is quite simple, and you can pass various arguments, but I always recommend just using -h
, which tells df
to print the output in human-readable values. Specifically, sizes will be formatted as easy-to-understand values such as megabytes, gigabytes, terabytes...