bytebuster: (ITCrowd-Moss)
[personal profile] bytebuster
Невинне питання: 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
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Сторінку створено Субота, 14 Червень 2025 13:27

Травень 2025

П В С Ч П С Н
   1 234
567891011
12131415161718
192021222324 25
262728293031 
Створено з Dreamwidth Studios

За стиль дякувати