[Reprinted] Several Basic linux configurations are most useful for beginners.
Source: Internet
Author: User
[Reprinted] The most practical basic configurations of linux. For Beginners, refer to general Linux technology-Linux technology and application information. For details, refer to the following. Basic Linux Configuration
1. Modify the IP address
Ifconfig eth0 192.168.2.10 netmask 255.255.255.0
Note: restart the service after the IP address is modified.
Service network restart
Configuration file (permanently saved)
/Etc/sysconfig/network-scripts/ifcfg-eth0
Example: BOOTPROTO = STATIC
IPADDR = 192.168.2.10
NETMASK = 255.255.255.0
GATEWAY = 192.168.2.1
2. Modify the MAC address
Ifconfig eth0 hw ether 00: 00: 12: 12: 23
Note: to change the MAC address, disable the NIC.
Ifconfig eth0 down
Ifconfig eth0 up
3. DNS Server
Configuration file/etc/resolv. conf
NAMESERVER 202.96.209.5
NAMESERVER 202.96.209.7
4. Host Name
Configuration file/etc/sysconfig/network
HOSTNAME = ANNIEY
5. Glossary
Configuration file/etc/hosts
192.168.20.6win01
Supplement:
1. open multiple files
Vi? O
2. Interruption
Ctrl + c
3. Copy the entire directory
Cp? R
4. Force Delete
Rm? F
5. Hard Disk
Df
6. Memory
Free
7. Start the execution script
/Etc/rc. d/rc. local
8. Service
/Etc/rc. d/init. d
9. Running Mode init
/Etc/inittab
Reprinted: www.itshanghai.net
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