Developers need to know the basic Linux practical operation

Source: Internet
Author: User

Linux has a complex system, there are a lot of commands, development colleagues in the daily development, unlike operations colleagues need to skillfully use a lot of commands.

Below is a list of the basic commands I used in my work:

Log view

For development colleagues, the most common tasks in Linux are log viewing.

1 log down to local, and then use notepad++ to view.

2 Use the VIM command.

For Mode 1, I believe a lot of people are doing this, and this is the simplest and most effective.

The use of Vim in Mode 2 makes a lot of people cringe, but, in general, we just need to find it based on some keywords, navigate to the log line, and look at the context output.

: line number jumps to the specified line CTRL + G to see how many rows display the line number, the file name, the line number of the last line in the file, the row number of the cursor as a percentage of the total number/text find, press N to find the next, press N to find the previous? Test reverse lookup, press N to find the previous GR EP ' Xxx.logset number/set nonumberset ignorecase/set noignorecaseset hlsearch/set nohlsearch

  

Two file upload download

Sz/rz

Three SSH commands, su command

Developers need to know the basic Linux practical operation

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.