Within a terminal, when you press up in your keyboard, you get to see the past commands you have given to it before in order. I was wondering if there was a way to see only the commands in the past starting with -for instance, "ls -l". That way, if the list of commands is:
- ls -l -a
- cmake
- cd ~/Desktop
- cmake
A way to just write "ls" and tab or whatever combination of key-strokes needed to pop up the past command giving in to the terminal starting with "ls"
Thanks,
It won't show things only starting with ls
, but you can do Ctrl-R ls
to do a backwards search through history. Repeat Ctrl-R
to find the next match.
No comments:
Post a Comment