I had noticed that my disk usage was very high for some weird reason so in an attempt to locate the offender(s) i found the following command very useful.
du -a * | sort -rn > disk-usage.logIt simply takes the current directory and lists out the size of each sub-directory from largest to smallest into a nice log file.
If you are interested in how large the packages you have installed are on your Debian server you can run the following
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn
Comments
Post new comment