Hi all,
I have a problem with low disk space in the filesystem root so I used the commnd
Code:
df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 160K 1.9G 1% /dev/shm
tmpfs 1.9G 3.9M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/fedora_student--laptop-root 25G 23G 113M 100% /
tmpfs 1.9G 80K 1.9G 1% /tmp
/dev/sda8 477M 108M 340M 25% /boot
/dev/sda7 200M 7.9M 192M 4% /boot/efi
/dev/mapper/VolGroup00-linux--data 423G 2.0G 400G 1% /transients
But if you see the used space is 23G from 25G so it should be 2G available not 133M, Why this?
And if so, I used the command
Code:
du -h --max-depth=1
to see what's using the most space and I found /usr 3.9G and var/ 6.4G. So to look inside the /var directory to look for the files which take up too much space I used the command
Code:
du -ah /var | sort -n -r | head -n 25
this gave me these four biggest files
992M /var/cache
989M /var/cache/yum/x86_64/18
989M /var/cache/yum/x86_64
989M /var/cache/yum
Which of them can I delete? Are these files important?
Thanks in advance