/etc directory __linux under Unix/linux

Source: Internet
Author: User

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======

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.