Tip of the Trade: Bash Command Line Shortcuts

“Here, are a few useful candidates. (C = control key, M =
alt/meta key.)

C-r and C-s : Launch an incremental search backward and forward
(respectively), in your command-line history.

C-j and C-g : Abandon an incremental search either with the line
found, or with the original line (respectively).

M-. or ESC then . : Both of these insert the final argument to
the last command at the cursor point. This is useful when moving
files around and editing them.”


Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis