This is an old revision of the document!
General Bash-ery
Ctrl + a, move to the beginning of the lineCtrl + e, move to the end of the lineCtrl + k, Cut the Line after the cursor to the clipboard.Ctrl + u, Cut the Line before the cursor to the clipboard.Ctrl + y, paste last value in clipboardMeta + y, cycle through previous values in clipboard
Command Line Search
Use Ctrl-r to reverse search command history and Ctrl+s to forward search
stty -ixon # enabled forward search with Ctrl+s by disabling XON/XOFF flow control
Command Line Editing
export EDITOR=/bin/vito make vi the default editorCtrl+x+eto edit current command in default text editor.- Opens the current command line in the default editor. For
viyou can exit with:cqto cancel the command. fc, fixed command opens the last command in the editor
History
history -a, append the current session history to the history filehistory -s <cmd line>, save the specified command line to history without executing it. Alternatively, prefix a line with the comment character (#) and it will be saved to history as a comment.