Bash history searching: Difference between revisions
Jump to navigation
Jump to search
(Created page with "I learned these commands from looking over David's shoulder and have found them very useful. ===Search bash history=== A very useful way to quickly repeat a previous command,...") |
(No difference)
|
Latest revision as of 12:36, 13 May 2019
I learned these commands from looking over David's shoulder and have found them very useful.
Search bash history
A very useful way to quickly repeat a previous command, even if it was last used quite a while ago.
CTRL - R
then type what to search for.
Copy and past the last argument of the previous command
ALT - .
very useful in situations like
$ ls /sharedscrach/js850/mydir/anotherdir/myfile $ vi ALT - .