When I checked how much space I have on my HDD I found it to be 300+ from 400 something. The thing is that I recently did a HDD recovery to get back my files and it worked, but then I decided to delete them, so I am thinking that either the deleted files are still there somewhere or something else is going on.
1 Answer
To search for files and folders that take up a lot of space on the hard drive - I ran the command:
root# du -h / > list-disk.txt
The file (list-disk.txt) will contain the contents of your disk with the size. Then it is already possible - to decide what to remove.
-
thank you very much i already formated my HDD and reinstalled ubuntu 17.04 i didnt have much time since i got to be somewhere with the laptop thanks for surporting i hope this becomes usefull in the future :) Jun 18, 2017 at 18:37
/var
folder often also has cache (e.g. downloaded packages). But due to the discrepancy of what 'Disk Usage Analyser' shows (24.6 gigabytes vs 444.6), you may need to run something as root to show what is using space (e.g.sudo du -m / --max-depth 1
) which probably will that the/var
or/tmp
folder is using more than shown - or you managed to delete stuff between i.imgur.com/AmtPFmj.png and i.imgur.com/s0OUIHQ.png