Linux命令行编辑器emacs如何快速定位光标
###ls command with -F option
ls -F list the content and if the content is a directory then followed by a /
###complete the command with tab or hint with esc
tab complete the command
ESC twice complete the command or hint
操作方法
- 01
###how to use emacs ctrl+b move back on character ctrl+f move forward one character del delete the character to the left of the cursor
- 02
ctrl+d delete the character underneath the cursor ctrl+a move to the start of the line ctrl+e move to the end of the line
- 03
esc-f move forward a word esc-b move backward a word ctrl+l clear the screen,reprint the current line at the top ctrl+k kill or delete the text from the current cursor position to the end of the line
- 04
esc-d kill from te cursor to the end of the current word,or if between words,to the end of the next word esc-del kill from the cursor the start of the previous word,or if between words,to the start of the previous word ctrl+w kill from the cursor to the previous white space.This differs from esc-del because the boundaries separating words differ.
- 05
### fc -l(low case letter L) history-number to edit the history command
- 06
##to display the environment variables echo $PATH echo $PS1