bassmadrigal |
07-13-2020 11:24 PM |
You can check what space is being used by the following command. Then you can go into each folder that is large and check those folders too.
Code:
sudo du -hxd 1 / | sort -h
du is to show your disk usage. -h make the output human readable (using KB, MB, GB, etc). -x will keep it within the same partition (if you have other partitions mounted, it won't go into those). -d 1 will only show the folders within the directory you're specifying. The sort -h will sort things top to bottom using human readable formats.
If you look at my example, you can see that /var/, /usr/, and /tmp/ use a lot of space. /usr/ is pretty normal to take a lot of space, but /var/ and /tmp/ are usually filled with things that can be removed to clear up space. My /tmp/ has a TON of directories, so var is easier to look at. You can use these commands to narrow down and find what is taking up your space and potentially remove it.
Code:
jbhansen@craven-moorhead:~$ sudo du -hxd 1 / | sort -h
4.0K /srv
12K /share
16K /lost+found
44K /mnt
64K /media
13M /bin
21M /lib64
23M /sbin
77M /etc
308M /boot
3.5G /opt
4.6G /lib
7.0G /root
31G /var
67G /usr
120G /tmp
232G /
jbhansen@craven-moorhead:~$ sudo du -hxd 1 /var | sort -h
4.0K /var/data
4.0K /var/empty
16K /var/netatalk
16K /var/state
24K /var/lock
24K /var/named
32K /var/yp
40K /var/db
44K /var/man
212K /var/run
3.3M /var/spool
12M /var/www
432M /var/tmp
796M /var/log
3.0G /var/lib
6.7G /var/cache
20G /var/slapt-get
31G /var
Many people have /tmp/SBo taking up a lot of space. I'd start with removing that.
|