For an actual running kernel, the onlyone way to get the config file this is to
cat /proc/config.gz | gunzip > running.config
or to just view
zcat /proc/config.gz | less,
zcat /proc/config.gz > running.config
Then running.config will becontain the configuration of the running linux kernel.
However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in
General setup[*] Kernel .config support[*] Enable access to .config through /proc/config.gz
Most distros don'tdistributions do not have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory.