Dahne-linux Foundation-day03

Source: Internet
Author: User

Vim Editor:

Command mode input mode last line mode

I key into input mode

ESC key into Command mode

: Last line mode input Wq save exit q! Do not save the rollout


To permanently define aliases:

All the aliases in Vim/root/.bashrc//linux are stored in this configuration file, and we only need to edit them via the Vim editor.


To configure a permanent host name:

Vim/etc/hostname//Enter after the edit, save exit can


To configure network card information:

Cat/etc/sysconfig/network-scripts/ifcfg-eth0//view NIC configuration information

[[email protected] ~]# NMCLI Connection Show//view the name of the NIC identified by the command
Name UUID type device
System eth0 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 802-3-ethernet eth0
[Email protected] ~]# nmcli connection modify ' System eth0 ' ipv4.method manual ipv4.addresses ' 172.25.0.11/24 172.25.0.25 4 ' Connection.autoconnect Yes//configure network card address, subnet mask, gateway address and set random start
[[email protected] ~]# vim/etc/resolv.conf//Configure a permanent DNS server
[[email protected] ~]# nmcli connection up ' System eth0 '//activating NIC Information


Using the wget download tool

URL URLs for the –wget software package
URL of the –wget software package-o/directory path/new file name

Firefox 172.25.0.254
wget http://172.25.0.254/content/rhel7.0/x86_64/errata/Packages/kernel-3.10.0-123.1.2.el7.x86_64.rpm//kernel version of the link address
Uname-r//view current kernel version
RPM-IVH kernel-3.10.0-123.1.2.el7.x86_64.rpm//Install the new version (do not have any action during the installation process)
Reboot//restart

Uname-r//View kernel version


Dahne-linux Foundation-day03

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.