jbrashear72
asked on
Drives get full fast how to manage them
My /usr and /var get full all the time. How canI tell what is filling up the drive and keep it under control?
what command can asl show files in a tirectory say like the top 10 largest files?
root@diamond [~]# df -ahk
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda5 1035660 496460 486592 51% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
/dev/hda1 77749 20299 53436 28% /boot
none 516248 0 516248 0% /dev/shm
/dev/hda8 142394868 39061064 96100540 29% /home
/dev/hda7 1035660 33484 949568 4% /tmp
/dev/hda2 4127108 3259464 657996 84% /usr
/dev/hda3 4127108 2325544 1591916 60% /var
/dev/hdc1 158309288 56591452 93676104 38% /backup
none 0 0 0 - /proc/sys/fs/binfmt_misc
root@diamond [~]# w
09:43:45 up 14 days,
what command can asl show files in a tirectory say like the top 10 largest files?
root@diamond [~]# df -ahk
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda5 1035660 496460 486592 51% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
/dev/hda1 77749 20299 53436 28% /boot
none 516248 0 516248 0% /dev/shm
/dev/hda8 142394868 39061064 96100540 29% /home
/dev/hda7 1035660 33484 949568 4% /tmp
/dev/hda2 4127108 3259464 657996 84% /usr
/dev/hda3 4127108 2325544 1591916 60% /var
/dev/hdc1 158309288 56591452 93676104 38% /backup
none 0 0 0 - /proc/sys/fs/binfmt_misc
root@diamond [~]# w
09:43:45 up 14 days,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
/var keep lots of stuff as rindi said cache folder is one of it, also the /var/log will keep the system log, such as security, mail etc.... which depend on what application installed and how they handle the log files.
/usr mainly maintain the system program and the applications, so if you install lots of applications which might fill up the /usr also if your application keep the log file in /usr/appication/log will also fill up the /usr
so what's the size of the partition of /var and /usr ??
can you post the df -h here.
/usr mainly maintain the system program and the applications, so if you install lots of applications which might fill up the /usr also if your application keep the log file in /usr/appication/log will also fill up the /usr
so what's the size of the partition of /var and /usr ??
can you post the df -h here.
ASKER