User Configuration file
Files in the/etc/directory, only the root user has permission to modify. The global profile of the application software is not normally available to the normal user, and you can modify the user profile if you want to configure the software to accommodate specific requirements.
The user profile is typically a hidden file with the same name as the global configuration file, placed in the $home directory, for example:
| The code is as follows |
Copy Code |
/etc/inputrc/home/user/.inputrc /etc/vim/vimrc/home/user/.vim/vimrc |
There are also a few exceptions, usually system programs
| The code is as follows |
Copy Code |
/etc/bash.bashrc/home/user/.bashrc |
Global configuration file
System initialization
| The code is as follows |
Copy Code |
/etc/inittab run level, number of consoles /etc/timezone Time Zone /ETC/INETD.CONF Super Process |
File system
| The code is as follows |
Copy Code |
/etc/fstab file system mounted on boot /etc/mtab the currently mounted file system |
User System
| The code is as follows |
Copy Code |
/ETC/PASSWD User Information /etc/shadow User Password /etc/group Group Information /etc/gshadow Group Password /etc/sudoers sudoer List (please use the "Visudo" command to modify this file instead of editing it directly) |
Shell
| The code is as follows |
Copy Code |
/etc/shell List of available shells /ETC/INPUTRC ReadLine Control Settings /etc/profile User Preferences /ETC/BASH.BASHRC Bash configuration file |
System environment
| The code is as follows |
Copy Code |
/etc/environment Environment variables /etc/updatedb.conf file to retrieve database configuration information /etc/issue Release Information /etc/issue.net /ETC/SCREENRC Screen Setup |
Internet
| The code is as follows |
Copy Code |
/etc/iftab Nic MAC address binding /etc/hosts Host List /etc/hostname Host Name /ETC/RESOLV.CONF Domain name resolution server address /etc/network/interfaces NIC configuration file |
Important configuration Files
! In any case, before modifying the configuration file, back it up!
It is recommended that you use this command: sudo cp xxx xxx_ ' date +%y%m%d_%h:%m '.
Of course it's troublesome, you can create a new file called Bak, which reads as follows:
| The code is as follows |
Copy Code |
#!/bin/bash
sudo cp $ $1_ ' Date +%y%m%d_%h:%m ' |
Put it in the directory you can remember, such as/home, execute command sh/home/bak XXX, you can save the current folder in the file xxx saved as xxx_yymmdd_hh:mm format.