linux 命令行快捷键

Linux命令行支持编辑模式,默认的Linux命令行编辑模式是Emacs,下面就是一些Linux命令行的快捷键列表,熟悉了这些快捷键后,你在使用Linux命令行的时候会事半功倍的。

Linux命令行支持编辑模式,默认的Linux命令行编辑模式是Emacs,下面就是一些Linux命令行的快捷键列表,熟悉了这些快捷键后,你在使用Linux命令行的时候会事半功倍的。

Ctrl + A           # Go to the beginning of the line you are currently typing on
Ctrl + E # Go to the end of the line you are currently typing on
Ctrl + L # Clears the Screen, similar to the clear command
Ctrl + U # Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H # Same as backspace
Ctrl + C # Kill whatever you are running
Ctrl + Z # Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W # Delete the word before the cursor
Ctrl + K # Clear the line after the cursor
Ctrl + T # Swap the last two characters before the cursor
Tab # Auto
Ctrl + Y # to paste it (as in delete and copy) all text in front of the cursor
Ctrl + b # Move back a character
Ctrl + f # Move forward a character
Alt + F # Move cursor forward one word on the current line
Alt + B # Move cursor backward one word on the current line
Alt + c # Capitalize the word
Alt + d # Delete word
Alt + l # Make word lowercase
Alt + u # Make word uppercase
Alt + backspace # Delete backward from cursor

Leave a Reply

Your email address will not be published. Required fields are marked *