1
1
1998or22021-04-16 15:25:39
linux
1998or2, 2021-04-16 15:25:39

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

3 answer(s)
S
Saboteur, 2021-04-16
@1998or2

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.

A
Adamos, 2021-04-16
@Adamos

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.

X
xotkot, 2021-04-16
@xotkot

$ 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 question

Ask a Question

731 491 924 answers to any question