Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Please what is the purpose of the /proc/config.gz file in my Linux server filesystem?

Is it some backup file, or it is an updated file by the Linux system? Can I change it?

share|improve this question
add comment

1 Answer

This enables you to get the kernel configuration, with which your kernel was compiled.

Usually you use it, if you want to build a new kernel, but you don't have the actual configuration of your running kernel. See Linux Kernel Configuration

Why you want to change it? Normally you can't, it should be read only from userspace view.


By the way, all files under /proc comes from the procfs which provides informations from the kernel to the userspace and backwards. The newer approach is the sysfs usually mounted under /sys, which provides a convenient way to communicate with the kernel from userspace.

share|improve this answer
3  
It can also be useful to determine if your kernel was actually compiled with support for something. If you know you need a specific feature, you can look in /proc/config.gz to determine its status in your kernel. –  Nex7 Sep 10 '13 at 23:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.