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?
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?
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 theprocfs
which provides informations from the kernel to the userspace and backwards. The newer approach is thesysfs
usually mounted under/sys
, which provides a convenient way to communicate with the kernel from userspace.