본문 바로가기
IT Tech/Tip

nano 에디터 명령어

by _><- 2014. 12. 5.
반응형

'ALT-6' to copy a line (copy as many lines as you like, and they will be pasted in the order you copied them)

'CTRL-U' to paste the lines

 

F1 도움말

^O 새로운 파일 생성

^X 종료

^R 파일을 읽어오기

^K 잘라내기

^U 붙여넣기

블럭지정하기 ctrl+^+ 방향키 (흰색만 선택한 것임)

^W 원하는 문자열 찾기

^G 도움말 

 

^G (F1) Display this help text

^X (F2) Close the current file buffer / Exit from nano

^O (F3) Write the current file to disk

^J (F4) Justify the current paragraph

 

^R (F5) Insert another file into the current one

^W (F6) Search for a string or a regular expression

^Y (F7) Go to previous screen

^W (F6) Search for a string or a regular expression

^Y (F7) Go to previous screen

^V (F8) Go to next screen

 

^K (F9) Cut the current line and store it in the cutbuffer

^U (F10) Uncut from the cutbuffer into the current line

^C (F11) Display the position of the cursor

^T (F12) Invoke the spell checker, if available

 

M-\ (M-|) Go to the first line of the file

M-/ (M-?) Go to the last line of the file

 

^_ (F13) (M-G) Go to line and column number

^\ (F14) (M-R) Replace a string or a regular expression

^^ (F15) (M-A) Mark text at the cursor position

M-W (F16) Repeat last search

 

M-^ (M-6) Copy the current line and store it in the cutbuffer

M-} Indent the current line

M-{ Unindent the current line

^F Go forward one character

^B Go back one character

^Space Go forward one word

M-Space Go back one word

^P Go to previous line

^N Go to next line

^N Go to next line

 

^A Go to beginning of current line

^E Go to end of current line

M-( (M-9) Go to beginning of paragraph; then of previous paragraph

M-) (M-0) Go just beyond end of paragraph; then of next paragraph

M-] Go to the matching bracket

M-- (M-_) Scroll up one line without scrolling the cursor

M-+ (M-=) Scroll down one line without scrolling the cursor

M-< (M-,) Switch to the previous file buffer

M-> (M-.) Switch to the next file buffer

 

M-V Insert the next keystroke verbatim

^I Insert a tab at the cursor position

^M Insert a newline at the cursor position

^D Delete the character under the cursor

^H Delete the character to the left of the cursor

M-T Cut from the cursor position to the end of the file

 

M-J Justify the entire file

M-D Count the number of words, lines, and characters

^L Refresh (redraw) the current screen

^Z Suspend the editor (if suspend is enabled)

반응형

'IT Tech > Tip' 카테고리의 다른 글

PDF에 북마크/주석 기능 사용하기  (0) 2015.10.09
소스코드 예쁘게 블로그에 넣기  (0) 2015.03.23
모바일 진단1  (0) 2014.12.02
logcat 활용하기  (0) 2014.12.01
무선랜 설정하기  (0) 2014.11.21