This cheatcheat will help you to improve your skills in bash, There are 2 columns, the left one is the command in parenthesis ex (C-j) = Ctrl + j and the right one will do a simple description. - The Notes Section could help to resolve some problems or include features into your Terminal. - Finally this is only the the basic commands, but if you want to know more. check the More Info Section. You could find advance shortcuts that can help to improve your skills
(TAB) |
complete: Attempt to perform completion on the text before point. [more]
|
(C-j) |
⏎ accept-line: Send a newline (
\n) |
(C-c) |
interrupt (kill): The current foreground process running in in the terminal. [more]
|
(C-d) |
end-of-file (EOF): If there are no chars on the line, Readline returns EOF
|
(C-z) |
|
(M-.) |
insert-last-argument : Move 'backwards' through the previous aguments
|
(C-p) |
previous-history: Move ‘backward’ through the history list, fetching the previous command.
|
(C-n) |
next-history: Move ‘forward’ through the history list, fetching the next command.
|
(C-r) |
reverse-search-history: Search 'backward' through the history. This is an incremental-search.
|
(C-s) |
forward-search-history: Search 'forward' through the history. Important! You need to disable the xon first to use it (
stty -ixon) |
(C-a) |
beginning-of-line: Move to the start of the line.
|
(C-e) |
ending-of-line: Move to the end of the line
|
(M-b) |
backward-word: Move backward a word
|
(C-b) |
backward-char: Move backward a character.
|
(M-f) |
forward-word: Move forward a word
|
(C-f) |
forward-char: Move forward a character.
|
(C-u) |
unix-line-discard: Kill 'backward' from the cursor to the beginning of the current line.
|
(C-k) |
kill-line: Kill 'forward' from the cursor to the end of the current line.
|
(M-BS) |
delete-backward-word: Kill the word behind point (BS = backspace)
|
(M-d) |
delete-forward-wrord: Kill from point to the end of the current word
|
(C-l) |
clear-screen: Clear the screen, reprinting the current line at the top.
|
(C-/) |
undo: Incremental undo, separately remembered for each line.
|
(C-y) |
|
(M-y) |
yank-pop: Rotate the kill-ring, and yank the new top. You can only do this if the prior command is
yank or yank-pop. |
(C-s) |
transmit-off (XOFF): Stops the data flow from the keyboard [more]
|
(C-q) |
transmit-on (XON): Enable the data flow and release all the info contained [more]
|
(C-): Control key = Ctrl(M-): Meta key [] = Alt, [] = Opt (check Notes)(C-) operate on chars while (M-) operate on words. [more]|
For Mac users: The
Meta key is setted to the ESC,but you can set the Opt key as well. Just open the terminal and go toTerminal > Preferences > Basic Default > Keyboard > Use option as meta key If you need more information, read this tutorial [more] |
|
Spanish Keyboard Mac users: There are some users that say that the configuration of
Opt key above can disable some keys like ~#¬]}\| |
|
For Windows user There are some ways tu use the bash shortcuts in terminal. if you want to use the native powershell, check this [Article] to see how to use Bash shortcuts
|
|
gnu.org: Bash Reference Manual
|
|
ss64.com: syntax-keyboard
|
|
howtogeek.com : keyboard-shortcuts...
|
|
catern.com: Terminals are weird
|
|
catonmat.nrt: Bash emacs editing mode
|
|
github.com: awesome-cheatsheets
|
|
cheatography.com: Bash shortcuts, full-list
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.