1 |
On 10/01/2015 06:57 AM, Philip Webb wrote: |
2 |
> 151001 thelma@×××××××××××.com wrote: |
3 |
>> How do you folks clean-up root partition, I have too much junk in there. |
4 |
>> df -h |
5 |
>> Filesystem Size Used Avail Use% Mounted on |
6 |
>> /dev/sda3 74G 61G 9.3G 87% / |
7 |
>> I've already removed all the files from /usr/portage/distfiles . |
8 |
> |
9 |
> 'du' is your friend : it has lots of options, so read the 'man'. |
10 |
> that will tell you what's using so much space, then you can delete stuff. |
11 |
> My system shows : |
12 |
> |
13 |
> root:505 ~> df -h |
14 |
> Filesystem Size Used Avail Use% Mounted on |
15 |
> 802 30G 6.4G 24G 22% / |
16 |
> tmpfs 395M 516K 395M 1% /run |
17 |
> dev 10M 0 10M 0% /dev |
18 |
> none 2.0G 0 2.0G 0% /dev/shm |
19 |
> cgroup_root 10M 0 10M 0% /sys/fs/cgroup |
20 |
> /dev/sda5 30G 12G 19G 40% /home |
21 |
> /dev/sda6 15G 6.7G 8.4G 45% /usr/portage |
22 |
> /dev/sda7 40G 8.1G 32G 21% /z |
23 |
> /dev/sdb1 9.8G 3.5G 6.3G 36% /usr/local |
24 |
> /dev/sdb5 9.8G 1.6G 8.3G 16% /usr/src |
25 |
> tmpfs 2.0G 8.0K 2.0G 1% /tmp |
26 |
> |
27 |
> /z is a large hangar space for handling very big files. |
28 |
|
29 |
Thanks. |
30 |
Yes, I used: |
31 |
du -a /var | sort -n -r | head -n 10 |
32 |
|
33 |
and found my /var/log/messages was over 5Gb |
34 |
|
35 |
-- |
36 |
Thelma |