Linux shortcut keys and System administration commands (1)

Source: Internet
Author: User

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)

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.