Day Nineth: Linux basic commands (ii) and C compilation process

Source: Internet
Author: User

One: Linux basic command:

1. Find command finds files such as Find/-name hello to find the file under the name of hello in the root directory.

2. grep command string matches such as grep "Lucy" *-r recursive lookup file containing "Lucy" string file

3. Du command to view the volume of the file

4. > redirect the standard output from the screen to the savels file like ls > savels redirect ls

5, >> attached as LS >> savels will be the result of LS attachment to the savels. If you use > will be to overwrite the file directly.

Two: Vim shortcut key:

1, I insert before the cursor at the beginning of the cursor

2, a after the cursor insert a at the end of the cursor line inserted

3. o Insert the row below the line where the cursor is inserted.

4, 0 move the cursor to the beginning of the line $ move the cursor to the end

5.-Move the cursor to the beginning of the previous line, + move the cursor to the beginning of the next line

6. GG moves the cursor to the beginning of the first line G moves the cursor to the beginning of the last line

7, U revoke ctrl+r anti-revocation

8. Shift+v Visible Line Ctrl +V Visual block

9, bulk increase the first visual block to select the area to increase, capital I input the content to be added, and finally press two times ESC.

10, command line mode input sp+ file name can open two files at the same time, using the ctrl+w+ key or the next key to switch

      

  

      

Day Nineth: Linux basic commands (ii) and C compilation process

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.