open emacs editor: emacs -nw
- create a new file: C-x C-f
- open a file: C-x f
- save a file: C-x C-s
- split the screen: C-x 2
- switch buffers: C-x b
- move between split windows: C-x o
- close current window: C-x 0
- suspend Emacs: C-z
- fg: return Emacs
- cancel a command: C-g
- mark set: C-space (the language mode should be English, not Chinese)
- copy: M-w
- cut: C-w
- paste: C-y
- move the cursor:
- By line: C-a to start, C-e to end