Đỉnh NGUYỄN

life's a journey not a destination

Các lệnh Vi thường dùng cho DBA

Leave a comment


Một số lệnh Vi rất hữu ích và thường dùng cho người mới bắt đầu và DBA.

esc :q! Just quit – don’t save
esc :e! Revert to saved
esc :wq Save and exit
esc shif zz Save and exit
esc i Enter insert mode (edit mode)
esc a Enter append mode (edit mode)
esc Exit edit mode
esc r Replace a single character
esc x Delete a single character
esc dd Delete a single line
esc yy Copy a single line
esc p Paste a single line
. Repeat last command
esc / String search
esc $ Jump to end of line
esc ^ Jump to beginning of line
shift g Jump to the end of the file
:1 Jump to the beginning of the file
:.= Display the current line number
Advertisements

Author: dinhnn

Senior software developer, a technical leader. You can be reached at via email to dinhnguyenngoc@gmail.com, via my blog at dinhnguyenngoc.wordpress.com, and on Twitter @dinhnguyenngoc.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s