command | description |
---|---|
ctrl+a | Move cursor to the start of the line |
ctrl+e | Move cursor to the end of the line |
◀ or ctrl+b | Move cursor back one character |
▶ or ctrl+f | Move cursor forward one character |
esc+b | Move cursor back one word |
esc+f | Move cursor forward one word |
Windows
command | description |
---|---|
alt+b | Move cursor back one word |
alt+f | Move cursor forward one word |
command | description |
---|---|
ctrl+_ | Undo |
ctrl+c | Cancel the current command |
ctrl+k | Cut everything after the cursor position |
ctrl+w | Cut a word to the left of the cursor position |
ctrl+y | Paste the last deleted command |
ctrl+d | Clear one character to the right of the cursor position. Or, when no input exists in the terminal, |
ctrl+l | Clear the entire terminal |
ctrl+u | Clear the current line |
ctrl+x | Toggle between first and cursor position |
Windows
command | description |
---|---|
alt+< | Cut a word to the left of the cursor |
alt+d | Cut a word to the right of the cursor |
command | description |
---|---|
ctrl+r | Search for a command in history (type a search term) |
ctrl+g | Cancel the search and restore original line |
ctrl+j | End the search at current history entry |
ctrl+n | Get next command from history |
ctrl+▼ | Get next command from history |
ctrl+p | Get previous command from history |
ctrl+▲ | Get previous command from history |