Explore some of the more useful but perhaps more esoteric capabilities of the Bash shell with the blog post Ten More Things I Wish I'd Known About bash. It is a followup to the highly visible post by the same author on Ten Things I Wish I'd Known About bash. Modern shells like Bash, Ksh, and Zsh have over four decades of developent and refinement, making them powerful, flexlble, and fast user interfaces for efficient work — not just excellent scripting languages for automation.
(Score: 4, Informative) by mmh on Tuesday January 23 2018, @04:42PM (2 children)
Author put in an extra, uneeded, caret. You only need two:
And, imho, I think the author missed two of the best shortcuts in bash:
1: ctrl+r = reverse history search, press ctrl+r, type any part of a previously run command. press ctrl+r to keep going back through the history.
2: alt+. = copy and paste the last argument from the last command. e.g.:
(Score: 0) by Anonymous Coward on Tuesday January 23 2018, @08:46PM (1 child)
$ mkdir test
$ cd !$
(Score: 1) by mmh on Tuesday January 23 2018, @09:15PM
alt+. is 2 keys, !$ is 4. It's like golf man.