Shortcut keys:
Ctrl+u: Quickly delete all character contents before the cursor.
Ctrl+k: Quickly removes all character content from the current cursor to the end of the line.
Ctrl+l: Quickly clears the contents of the current screen and displays the command prompt only in the upper-left corner.
CTRL + C: Cancels the editing of the current command line and switches to a new line of command prompt.
"\": If the input line of the command is too long, the terminal wraps itself. (Force line wrapping)
-------------------------------------------------------------------------------------------
Command:
Uname-r//View the Linux kernel version information currently in use.
Cat/proc/cpuinfo//View the current host's CPU model.
Cat/proc/meminfo//View memory information for the current host.
Hostname//temporarily modify host name.
Vi/etc/sysconfig/network//permanently modifies host name.
Ifconfig//View all network card information.
Ifconfig EthX//View the information of the single-block network card on the host, x=0,1,2 ... respectively, the first, two, three ... The information for the block NIC.
Ifconfig (eth0: Modify which NIC to follow which, only one can be omitted) x.x.x.x/y (M.M.M.M)//modify IP information; x:ip address, Y: Mask length, M: mask. such as =225.225.255.0
Shutdown-h now or Poweroff or init 0//shutdown operation.
Shutdown-r now or reboot or init 6//restart operation.
Shutdown-r +15 ' The system would be rebboted!! '//Send a notification to each user who is currently logged on to the Linux host ' the system would be rebboted ', and reboot after a delay of 15 minutes.
Help pwd: Check the shell's internal command for the PWD information.
--help: Used to display help information such as format and options for the corresponding command word.
PWD: Displays the directory where you are currently located.
This article is from the "Darker Notes" blog, so be sure to keep this source http://1286324609.blog.51cto.com/9453694/1597010
Linux shortcut keys and System administration commands (1)