- Move Line
# top
$ gg
# bottom
$ G
# left, up, down, right
$ h, j, k, l
# move first of line
$ ^
# move last of line
$ $
- Edit
# undo
$ u
# delete
$ x
# backspace
$ X
# replace 1char
$ r
# move to last word and insert
$ A
# move to next line and insert
$ o
# delete line
$ dd
# delete all after cursor
$ D
# copy line
$ yy
# paste
$ p
# replace word
:$s/find word/replace/word/
:$s/find word/replace/word/ig (i: ignore case / g: global)
'프로그래밍 > Linux' 카테고리의 다른 글
[Linux] 서비스 중인 Demon 리스트 검색 (0) | 2023.01.03 |
---|---|
[Linux] login Server - using ssh private key (0) | 2022.11.01 |
[Linux] using rsync command (0) | 2022.11.01 |
[Domain] Public IP Check (0) | 2022.10.31 |
[Docker] Docker permission deny 해결법 (0) | 2022.10.20 |