Linux practice engineer study NOTE 2: Common commands for System Management
Source: Internet
Author: User
Linux practice engineer study NOTE 2: Common commands for System Management-Linux general technology-Linux technology and application information. The following is a detailed description. Original Author: junger
1. useradd redhat
2. passwd redhat
3. su?
4. exit
5. df? H partition status
6. du? Sh/* size of the space used by the Statistics 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. route? N view route information (default route)
12. ping? B 192.168.0.255 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 you do not need to use netconfig after using this tool configuration, or first clear the profiles directory.
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.