Linux practice engineer study Note 2: common system management commands redhat-config-network-tui is a unique configuration tool for redhat. After configuring network parameters with this command, writes to the/etc/sysconfig/networking/profiles/directory, and takes precedence over network-scripts/ifcfg-eth0
1. useradd redhat
2. passwd redhat
3. su-
4. exit
5. df-h partition
6. du-sh/* size of the space used by the statistical file or directory
7. fdisk-l/dev/sda
8. configure network parameters in netconfig
9. ifconfig displays network configuration information
10. service network restart
11. View route information in route-n (default route)
12. ping-B 192.168.0.255 to scan the entire network segment (check active hosts)
13. ifconfig eth0 10.0.0.254 netmask 255.255.255.0 modify the IP address
14. ifconfig eth0 displays the specified Nic parameters
15. after the IP address information is modified, the default route will be deleted. you need to manually add
Route add default gw 192.168.0.1
16. the modified parameters of ifconfig route are not saved and disappear after restart.
Use the service network restart command to save the parameter to the file ifcfg-eth0
/Etc/sysconfig/network-scripts/ifcfg-eth0
You can directly modify the file in vi, and then re-enable the network service in service network restart.
17. redhat-config-network-tui is a unique configuration tool for redhat. when you use this command to configure network parameters, it will be written to the/etc/sysconfig/networking/profiles/directory, and better than network-scripts/ifcfg-eth0, so if you have used this tool to configure, do not use netconfig, or first clear the profiles Directory