bytebuster463: (IT Crowd Moss)
[personal profile] bytebuster463
Невинне питання: In the terminal, I can type CTRL-R to search for a matching command previously typed in BASH. E.g., if I type CTRL-R then grep is lists my last grep command, and I can hit enter to use it. This only gives one suggestion though. Is there any way to cycle through other previously typed matching commands?

Невинна відповідь: If I understand the question correctly you should be able to cycle through alternatives by repeatedly hitting Ctrl+R.

Ctrl+R grep Ctrl+R Ctrl+R ...

Але друга відповідь порвала на шматки:

If you feel the command will be used frequently, you could add a tag

command #useful

Then ctrl+r #useful

This works because # is a comment delimiter, i.e. everything that comes after the symbol is not interpreted as a command.
However, it will be recorded in the history and is thus searchable.

І коментар: The original hashtag. The bashtag, if you will

Оригінал публікації — на Дрімі. Підписуйтеся, бо ЖЖ може опинитися закритим у будь-який момент.
You may post here only if bytebuster463 has given you access; posting by non-Access List accounts has been disabled.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

bytebuster463: (Default)
bytebuster463

April 2017

S M T W T F S
       1
2 3 45678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 28th, 2025 03:21 pm
Powered by Dreamwidth Studios
OSZAR »