Why there are two ifcfg-eth0 file but in different directory

Why there are two ifcfg-eth0 file but in different directory

1./etc/sysconfig/networking/devices/ifcfg-eth0

2./etc/sysconfig/network-scripts/ifcfg-eth0

2 RPMs

The files are remnants of 2 RPM packages. If you run the following command you can see which RPMs are responsible for these directories:

# centos 6.4
$ for i in /etc/sysconfig/networking /etc/sysconfig/network-scripts; do echo "==> $i"; rpm -qf $i;done
==> /etc/sysconfig/networking
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
initscripts-9.03.31-2.el6.centos.1.x86_64
==> /etc/sysconfig/network-scripts
initscripts-9.03.31-2.el6.centos.1.x86_64