3 ms·
Just use Ctrl-R in bash to search backwards in the history
by JetSpiegel 12y ago
Just use Ctrl-R in bash to search backwards in the history
- scarecrowbob 12y agoI didn't know you could do that, so it's good to have an option- thanks. But how do you then pipe that to tail? :D
- JetSpiegel 12y agoYou don't, it's a readline thing, it doesn't really generate a file you can manipulate. (I expect to be proven wrong with some insane one-liner though). What you can do is press Ctrl-R again and it will search the older match. There's also forward match but I can't recall the shortcut.