Linux Learning Notes (1)

Source: Internet
Author: User

Learn Linux, a periodic summary, right when the notes convenient to read and review later.

In this special recommendation Peida's blog, his understanding of Linux personal feeling in layman's, very suitable for the introduction of the small white to understand and learn.

Say the difference between ifconfig and/etc/network/interfaces two commands for IP modification

(1) Command: ifconfig eth0 IP

Fconfig changes to the network configuration information is effective immediately, that is, the input of the corresponding command immediately, but the network card configured with the Ifconfig command information, after the network adapter restarts after the machine restarts, the configuration does not exist. In order to keep the above configuration information in the computer forever, it is necessary to modify the network card configuration file, that is, modify/etc/network/interfaces.

(2) Command: Cd/etc/network enter the path;

Nano interfaces into IP modify command line;

Ctrl+o Preservation;

Ctrl+x exit;

Service network restart (or reboot) restarts the network, which takes effect.

/etc/network/interfaces is the configuration file of the network card, this file will be read in the system when the network parameters and application of the network interface, the file can be modified with text editing tools such as Vim or nano, but the modification is only the configuration file, will not take effect immediately. To take effect, in addition to rebooting the system (reboot, which is equivalent to restarting network), you can also use the service network restart to restart the networking configuration.

Linux Learning Notes (1)

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.