Capacity planning
Disk space runs out at the worst moment: a service stops writing logs, a database stops saving data. A good habit is to know ahead of time how much is free and where the space goes. In this lesson you look at free space, a directory's size, and find what is eating the disk.
Nothing to set up: you look at the sandbox's real directories.
What to understand
df is how much is used and free in a whole filesystem. It answers the question 'how much more will fit'.
du is how much a particular directory or file takes. It answers the question 'what exactly is taking the space'.
An inode is a record about a file: its permissions, size and where the data sits. Inodes are a finite count, and they can run out separatel
The rest of this lesson is part of a paid course
You are reading the open part. Buy the course to unlock the whole lesson and its lab.