How to Investigate When Disk Usage Increases
Notes
An alert was raised for increasing disk usage, so I put together the steps I took to investigate it.
1 | $ df -h |
Investigation Method
1 | $ cd / |
By repeating steps ① and ② above, I investigate which directory is consuming the most space.
The du options used are as follows:
- -m : Display in MB
- -s : Display the total
Normally I use -h to make the output easier to read, but during this investigation a mix of MB and kB gets displayed when sorting, which makes it harder to interpret intuitively, so I used -ms.
