Common configuration file Locations under Linux

Source: Internet
Author: User

1. Alias configuration file

[email protected] ~]# VIM/ROOT/.BASHRC #此处是root用户定义的别名文件的位置, only the root user login is available

[email protected] ~]# VIM/LISI/.BASHRC #此处是定义lisi用户的别名配置文件保存位置, only Lisi user login is available
[email protected] ~]# VIM/ETC/BASHRC #此处 is to define the location where the alias profile of the global user is saved, all users are common, note that the alias definition statement is not written in the sentence
#用户单独的别名定义文件前面有. BASHRC

2. Host name configuration file

[Email protected] ~]# vim/etc/hostname #此处是虚拟机的主机名配置文件位置

3. Network card information configuration file

[email protected] ~]# vim/etc/resolv.conf #此处是虚拟主机网卡配置文件的位置

4, User information configuration file

Span style= "FONT-SIZE:18PX; Color: #800000 "> [[email  Protected] ~]# vim/etc/passwd    #此处是虚拟主机所有的用户信息配置文件的位置

Span style= "FONT-SIZE:18PX; Color: #800000 "> 5, Yum Warehouse config file

Span style= "FONT-SIZE:18PX; Color: #800000 "> [[email protected] ~]# vim/etc/yum.repos.d/*. Repo   < Span style= "COLOR: #008000" > #此处是虚拟主机所有的yum仓库信息配置文件的位置

6. Mount configuration file

[Email protected] ~]# Vim/etc/fstab Span style= "FONT-SIZE:18PX; Color: #800000 "> Span style= "FONT-SIZE:18PX; Color: #800000 "> #此处是虚拟主机所有的挂载配置文件位置

7. Sharing the configuration file

[Email protected] ~]# Vim/etc/exports Span style= "FONT-SIZE:18PX; Color: #800000 "> Span style= "FONT-SIZE:18PX; Color: #800000 "> #此处是虚拟主机所有的共享配置文件位置

8, NTP time with the function of the configuration file

[Email protected] ~]# vim/etc/chrony.conf Span style= "FONT-SIZE:18PX; Color: #800000 "> Span style= "FONT-SIZE:18PX; Color: #800000 "> #此处是虚拟主机NTP时间同步配置文件位置

Common configuration file Locations under Linux

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.