Answer the question
In order to leave comments, you need to log in
Where does hard drive space go in Linux Ubuntu?
Hello.
Recently switched to Linux Ubuntu. All good!
But I began to notice that every day there is less space on the hard drive, by a little, but less. I installed a couple of small programs yesterday, checked the place, remembered it. In the morning I turned on the laptop, I check, almost -1GB. What? Where? How?
I would like experienced users to suggest how and where in Linux can free space go, or does it show employment with a slight delay?
I look through the system monitor - file systems.
And in the console I look: - df -h
Answer the question
In order to leave comments, you need to log in
In Linux, the place just doesn't usually go anywhere.
In your case, I would first of all check what is in /var/log - most likely the log rotation is underconfigured, and something is accumulating.
Well, learn the second command:
sudo du -hd 1 /
Instead of the last one, substitute the path along which the previous command showed the maximum.
If it is inside /home/{user}, then you can do it without sudo.
$ sudo du -mSx -t 1M / > 1.txt
after time X:
$ sudo du -mSx -t 1M / > 2.txt
look at the difference
$ diff 1.txt 2.txt
set the minimum size (-t) of the directory to 1 meter, and also say that the information is displayed in meters (-m)
remove the size of subdirectories (-S) so that there is no duplication of information and skip directories from other file systems ( -x)
after comparing (diff) we will find the directories swollen during X time, well, then it’s up to the small - analysis of which files in these directories create indecency
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question