/ Etc family

           bin: full name of the binary, meaning binary. The directory Cunshu are some binary files, files are can be run.
           dev: The main directory is stored in an external device, such as a keyboard, U disk, and the like. But these devices can not be used directly, need to mount (assign a drive letter).
           etc: The main directory to store some configuration files.
           home: that "home", that stores all the user's files except root users, similar to the current user directory under the windows.
           proc: process, means the process, the process is stored in the directory linux runtime. (Write python scripts can be easily obtain various parameters)
           root: The directory is stored in the root directory of all users.
           sbin: full name super binary, the directory is stored in a binary file, but must be a super user privileges can execute.
           tmp: When the system is running will produce temporary files, the directory is used to store temporary files.
           usr: used to store the user's own software to install. Similar to the windows scared program files.
           var: This directory contains program or system log files. ****
           mnt: When external devices need to mount, the device will mount mnt file.
1: the card file / etc / sysconfig / network-scripts / ifcfg-eth0 eth1 for the second NIC
 DEVICE = eth0 ## physical device name, eth0 to the first network card; eth1 for the second NIC
 HWADDR = 00: 0C: 29: 84: 0C: 21 ## MAC address of the network card 48
 TYPE = Ethernet ## Ethernet
 UUID = 09ae6890-2925-4ca0-9cbc-e937593624f8 ## a unique user identifier, corresponding to the ID number! The view disk apparatus using the UUID blkid command
 ONBOOT = yes ## controls the NIC boot
 NM_CONTROLLED = yes ## whether the card management device networkmanager by
 one of these values BOOTPROTO = dhcp ## proto: none, the protocol is not used when the guide; static, static address allocation; BOOTP, using BOOTP; DHCP, using the DHCP protocol
 IIPADDR = 192.168.17.128 ## IP address      
 NETMASK = 255.255.255.0 ## subnet mask, dividing the network and host bits
 DNS2 = 202.106.0.20 # # DNS is put into a baidu.com baidu server IP. DNS is the domain name and IP analysis tool
 DNS1 = 8.8.8.8
 GATEWAY = 192.168.0.1 ## gateway address, the address of the router
 USERCTL = NO
 PEERDNS = Yes
 IPV6INIT = NO
 
2: / etc / fstab mounted file system information is provided, so that is possible to automatically mount the boot disk partitions, permanent mount disk need to fill in this file
    if you want to be mounted in front of the disk device mount point directory (the directory is mounted to the front of which directory) mounted file system type needs backup disk, 1 expressed the need for backup power on self test whether the
 UID 91a2efd1-8bf1-42d2-A387-e22e4b665a36 = / ext4 Defaults. 1. 1
 the UUID = 3f124651-9d7a-42b4-8cfa-11053a5a8ffc / Boot. 1 2 ext4 Defaults
 the UUID = 8cb814f4-f2f4-4bb0-A127-c97092845fcf the swap the swap Defaults 0 0
 tmpfs / dev / tmpfs Defaults 0 0 SHM
 the devpts / dev / PTS = the devpts GID. 5, MODE = 0 620. 0
 the sysfs / SYS the sysfs Defaults 0 0
 proc / proc proc Defaults 0 0
 
. 3: / etc / the passwd
 the root: X: 0: 0: the root: / the root: / bin / the bash X: is the encrypted password: 0 account the UID: 0 account the GID
 bin: X:. 1:. 1: bin: / bin: / sbin / nologin
 daemon: X: 2: 2: daemon: / sbin: / sbin / nologin
 ADM: X:. 3:. 4: ADM: / var / ADM : / sbin / nologin
 LP: X:. 4:. 7: LP: / var / spool / LPD: / sbin / nologin
 Sync: X:. 5: 0: Sync: / sbin: / bin / Sync
 the shutdown: X:. 6: 0 : the shutdown: / sbin: / sbin / the shutdown
 
4: / etc / Shadow password storage file, it first acts root password is compiled if coupled with the first character of the password! Or *, the password can not be landed
 root: $ 6 $ 23bdvUQF $ CL / 589LmYtDc6bCPT37uGYg5T4iEjFvCnmyiEsIX7OdTOn.FqG9Ix475PM.rfHR1LcHKFt5gkG9zTIeFU.fux:. 17824: 0: 99999: 7 :::
 daemon:*:17737:0:99999:7:::
 bin:*:17737:0:99999:7:::
 sys:*:17737:0:99999:7:::
 sync:*:17737:0:99999:7:::
 games:*:17737:0:99999:7:::
 man:*:17737:0:99999:7:::

Guess you like

Origin www.cnblogs.com/xuedu/p/11234813.html