(Memo) common configuration files in Linux

Source: Internet
Author: User

File function: configure information before Logon

File Name:/etc/issue

Note:

Some escape characters in this file indicate special meanings:

/D current date

/L display the number of terminals currently

/N display the host's network name

/O display Domain Name

/R display kernel version

/T current time

/S first try the operating system name

/V display the operating system version

File Content example:

Red Hat Enterprise Linux Server Release 5 (tikanga) <br/> kernel/r on an/m <br/> do your best!

 

 

========================================================== ============================

File function: Configure user information after Logon

File Name:/etc/motd

Note: The administrator can use this file to send some notifications to the operator.

 

 

========================================================== ============================

File function: Permanent saving of Environment Variables

File Name:/etc/profile and ~ /. Bash_profile

Name:/etc/profile can be used to save system environment variables, while ~ /. Bash_profile save your own environment variables

File Content example:

#. Bash_profile </P> <p> # Get the aliases and functions <br/> If [-f ~ /. Bashrc]; then <br/> .~ /. Bashrc <br/> fi </P> <p> # user specific environment and startup programs </P> <p> Path = $ path: $ home/bin </P> <p> export path <br/> unset username <br/> export oracle_base =/usr/lib/Oracle/<br/> export oracle_sid = orcl

 

 

========================================================== ============================

File function: Nic Configuration

File Name:/etc/sysconfig/network-scripts/ifcfg-eth0

Note: You can configure the eth0 parameter. The common parameter name is as follows:

Device-nic name

Bootproto-boot protocol; optional values: static or DHCP

Broadcast-broadcast address

Hwaddr-MAC address

Ipaddr-IP Address

Netmast-subnet mask

Network-the first IP address of the network segment

Gateway-Gateway

Onboot-start or not

File Content example:

 Device = eth0 <br/> bootproto = static <br/> broadcast = 192.168.1.255 <br/> hwaddr = 00: 40: D0: 13: C3: 46 <br/> ipaddr = 192.168.1.13 <br/> netmask = 255.255.255.0 <br/> network = 192.168.1.0 <br/> gateway = 192.168.1.2 <br/> onboot = Yes

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.