The/etc directory is used to store the configuration files of the Linux/unix system, and the configuration files in/etc are critical, so you should always back up (the backup method is at the end of the article) so that you can quickly revert to the previous configuration status whether you are reloading the system or because the system is broken. The article "etc" and "understand the Linux configuration file", the ETC directory of all the files have a detailed explanation, can be used for inspection. This is mainly to write a few common configuration files in the/etc directory. /etc/profile
/etc/profile contains the system environment variable settings, such as $path, $HOME ... This file is loaded every time the user logs in to set the environment variable, which is a global profile file and will affect all users after it is set up. (/home/username/.profile or. Bash_profile is for a specific user)
/etc/hosts
The Hosts file is a file in the Linux system that is responsible for fast resolution of IP addresses and domain names and is saved in ASCII format. The Hosts file contains a mapping between the IP address and host name, and also includes the alias of the hostname. In the absence of a domain name server, all network programs on the system query the file to resolve the IP address corresponding to a host name, or you will need to use the DNS service program to resolve it. Commonly used domain names and IP address mappings can be added to the hosts file to achieve fast and convenient access.
/etc/passwd
This file contains user information, and when a new user is added, a single line (containing the username, password ...) is appended to the file system, and is viewable by each user in this filesystem. If the password field contains "X", this means that the password has been confused
/etc/shells
Contains a list of possible "shells" available to the system.
/etc/group
Contains valid group names and users that are included in the specified group.
Wheel:x:10:root (Wheel is group name, root is user name) /etc/sysconfig/network
The/etc/sysconfig/network file is used to specify information about the desired network on configuration server.
backup method of/etc directory
Cd/etc
sudo tar-czvf etc.tar.gz *
Reprint please indicate the source: http://blog.csdn.net/pan_tian/article/details/7712992
======eof======