Linux practice engineer study Note 2: common commands for system management

Source: Internet
Author: User
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

Related Article

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.