May 19, 2011

Doubt in linux file management?



Am using slackware,fedora. In both cases , there are two dirs,

1. /usr/src/linux-{Kernerl version}/
2. /lib/modules/{kernel-version}/

what is the difference b/w these two? Actually , these two dir content are totally different, I agree. But, which one is the Kernel source ? :huh:

For writing device drivers, I am using the second one. But, actually, the first one only is in "src" dir .

I am not sure , this question is meaningfull or not, may this is so naive. But , want to know the difference. thank you