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