Skip to main content

Phím tắt trong terminal

Shortcut key Description
Ctrl + C Kill the current command
Ctrl + Z Suspend the current command, resume with fg in the foreground or bg in the background
Ctrl + D Logout the current session, similar to exit
Ctrl + W Erases or cut one word in the current line
Ctrl + U Erases or cut the whole line
Ctrl + Y Paste the previous cut text
Alt + Y Paste the second latest cut text
Ctrl + K Clear the line after the cursor
Ctrl + S Search
Ctrl + R Reverse search, Type to bring up a recent command
Ctrl + J It end the Ctrl + R search
Ctrl + G It abort the search by Ctrl + R and restore original line
Alt + R Restores all changes made to line
!! Repeats the last command
Ctrl + A Go to the beginning of the line
Ctrl + E Go to the end of the line
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + H Same as backspace
Tab Auto-complete files and folder names
Home Button Go to the beginning of the line
End Button Go to the end of the line
Up/Down Arrows To run last used command, you can also edit the command before run
Ctrl+Left and Ctrl+Right Ctrl and the left or right arrow keys jumps between arguments in your command. So you can easily modify your commands in middle.
Ctrl + P It shows previous history,same like UP arrow key
CTRL + N It shows forward history,same like DOWN arrow key
Ctrl + B Move cursor one character to the left side
Ctrl + F Move cursor one character to the right side
Ctrl + Shift + C To copy selected text
CTRL + Shift + V To paste you last copied by Ctrl + Shift + C
Shift + Insert Paste from the clipboard
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
CTRL + M It is like a Enter key (If ENTER key do not work, you can try this)


Error | chichio


The website encountered an unexpected error. Please try again later.