Small Code Linux small operation to be added

Source: Internet
Author: User

Ctags View Code

Makefile Make Maintenance project


I start writing

ESC U Undo

Vim default open mode is command-line mode

Insert mode is normal in edit mode

Bottom line mode: Wq

GG to First line HEAD

Shift+g to the last

DD to Ctrl+x

P to pate something

P to

S+4 $ to last

s+6 ^ to HEAD

S+~ A to a

x Deleate one by one

W to last by word

B to head by word

E

S+w

S+b

K

K

Hhhhhhhhhhllllllllllllllll

J

J

S+x

C+x Add number

5x deleate 5x

I do not change

A later one

o Next line and empty

: Wq

/int

: 3 Line 3

C+z Undo and re-enter option E

: Set Nu

: Set Nonu

:!

: q! Force exit

Su wz

yw pasting words

S+r

CW Delete Word to mode to command mode

\ The first match succeeds

? The last match was successful.

vs test1tab Enter

Vim Configuration to vs degree

C+w+l

Switch to the right

10yy

Set Nu all set line number

C+w+h to the left.

Where you want to copy it.

P

Alt +tab Open Terminal

Alt+ctrl exiting the virtual machine interface

C L o S

S compilation

Static links are copied to your code and cannot be used immediately

Dynamic links

LDD Test View Library

Static link disadvantage file size increase memory work

"Command-line mode" []

Gcc-o Test Test-g

GCC default is release version relise version

The plus-G option paves the GDB Debug.

GDB test enters interactive mode

L Display Code

Then the carriage return is the last logic L

Interrupts are implemented under Linux

b 16 lay a breakpoint in line 16

Info B View breakpoint Information

-Breakpoint Number-Valid no-

Running breakpoints

R

(run)

Single Step execution

N

(next)

Look at the address

Value of P xx xx

P &XX Address of XX

Display XX

Jumping out of breakpoints

Until 19

Until

Cancel Show Undisplay

Cancel Breakpoint Delete Breakpoints 1

Info b

It's just the breakpoint number 2nd.

function fun

D 2

You can also delete breakpoint # 2nd

Step

F

Finish End Function and wait for operation

Bt

Call stack Information


Small Code Linux small operation to be added

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.