A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

May 19, 2011

Doubt in linux file management?

Forums: 

Hai,

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

Click Here!