Linux User profiles and global configuration files

Source: Internet
Author: User

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.

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.