CLI Magic: Using command history in the bash shell (Linux.com)
Posted Jul 4, 2006 7:37 UTC (Tue) by
sveinrn (guest, #2827)
Parent article:
CLI Magic: Using command history in the bash shell (Linux.com)
There is one feature I have been missing...
Some years ago I was using MatLab for Windows extensively. There it is possible to type the first few letters of the command and then use arrow-up to get to the previous lines starting with those letters. So when I e.g. has issued a complicated mount command that I need again, and after that 30 other commands, including two other unrelated mount commands, I want to be able to type "mount<up><up><up>" and get back the command I want. Also, something like "*mysource.c<up><up>..." to get all commands containing this text would be nice. I think using the "history" command is too time-consuming, and I usually ends up typing the command again.
Is there anybody that knows how to do something like this?
(
Log in to post comments)