Linux Learning Record

Source: Internet
Author: User

Determine how many user links

Netstat-an | grep established

How many users are logged in

W|cat

The number can execute multiple commands.

Shutdown parameter Description:

[-T] tell Init how long it will shut down before changing to another runlevel.

[-R] Restart calculator.

[-K] does not really shut down, just send a warning signal to

Shortcut keys

CTRL + V forced termination

Ctrl+l Clear Screen

CTRL + A cursor moves to the beginning of the command

Ctrl+e cursor moves to the end of the command line

Ctrl+u Delete from the cursor position to the beginning of the line

CTRL + Z put commands into the background

Ctrl+r Search in the history command

I. Open file, save, close file ( used in the VI command mode )

VI filename//open filename File

: w//Save File

: w vpser.net//Save to Vpser.net file

: Q//Exit editor, if the file has been modified please use the following command

: q! Exits the editor without saving

: Wq//Exit editor, and save file

ii. inserting text or lines (vi Command mode to use, after executing the following command will go into insert mode, press ESC to exit the insertion mode )

A//Add text to the right of the current cursor position

I//Add text to the left of the current cursor position

A//Add text at the end of the current line

I//Add text at the beginning of the current line (the beginning of a non-empty character)

O//Create a new row above the current line

O//Create a new row below the current line

R//replace (overwrite) the current cursor position and several subsequent text

J//Merge cursor row and next line of behavior (still in command mode)

Linux Learning Record

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.