1855274 Members
4448 Online
104109 Solutions
New Discussion

/home full..

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

/home full..

my /home file system exceeds more than 80%.
I want to know which files are in /home after 01 Nov 2005.. so that i can delete that files for free space.


Thanks,
Yogeshg
There is never a wrong time to do the right things
6 REPLIES 6
Luk Vandenbussche
Honored Contributor

Re: /home full..

cd /home
find . -mtime 15 -print
Muthukumar_5
Honored Contributor

Re: /home full..

du -k /home/* | sort -nrk1 | more

will give it.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor
Solution

Re: /home full..

cd /home/
touch 200511010000 newfile
find . -type f -newer newfile -exec ls -l {} \+

will give it.

sorry for prev. reply which gives system usage.

hth.
Easy to suggest when don't know about the problem!
MarkSyder
Honored Contributor

Re: /home full..

I think Muthu's first answer is actually a better idea than deleting the newest files - do you know for certain that the newest files aren't needed?

Look at the most heavily loaded directories and see what can go.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Raj D.
Honored Contributor

Re: /home full..

Hi Yogi ,

1.
# cd /home ; find . -mtime 15 -exec ls -l {} \; > out.txt

2.
# cat out.txt | sort +4 -5nr > out1.txt

So out1.txt will have all the files after 01 Nov , and as per their size.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: /home full..

Since /home is controlled by users, often casual users that do not manage their disk space, you may find that just a few directories that need help. Don't be tempted to find big files because you'll miss large directories with thousands of junk files. Use this to analyze /home:

du -kx /home | sort -rn | head -20


Bill Hassell, sysadmin