Linux 7 common commands

Source: Internet
Author: User

Modify the NIC configuration file as follows:

Onboot=yes
ipaddr=192.168.1.11
netmask=255.255.255.0
Nm_controlled=no


To restart the network card:
Systemctl Restart Network

To view network card information:
IP add

Reference Documentation:


LINUX7 no ifconfig command after the minimal session installation system:

Install the Net-tools tool!


LINUX7 Modify the NIC name, en*** to eth0:


If the above method does not take effect, restart the system to try it!


How to modify the host name:

hostname Server1

To modify the/etc/hostname file:


How to view or turn off a firewall:

View the firewall status.

Systemctl Status Firewalld

Temporarily shuts down the firewall command. After restarting your computer, the firewall is automatically up.

Systemctl Stop Firewalld

Permanently shuts down the firewall command. After rebooting, the firewall does not start automatically.

Systemctl Disable FIREWALLD

Open the Firewall command.

Systemctl Enable Firewalld

Manuscripts: Small program development qixoo.com

Linux 7 common commands

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.