
rk键盘快捷键快捷键不一致

Everyone who regularly uses the command line has at least one long string they type regularly. Instead of entering all that again and again, quickly search your history to find the complete command.
定期使用命令行的每个人都有至少一个他们定期键入的长字符串。 无需一次又一次输入所有内容,而是快速搜索历史记录以查找完整的命令。
Even if you know use your Bash history in the Linux or macOS Terminal, you might not know about the built-in search functionality, which lets you quickly find the latest command you typed using any series of characters. And it’s easy to use: just open your Terminal on macOS or Linux.
即使您知道在Linux或macOS Terminal中使用Bash历史记录 ,也可能不了解内置的搜索功能,该功能使您可以快速查找使用任何字符序列键入的最新命令。 而且易于使用:只需在macOS或Linux上打开终端即可。

Now press Ctrl+R; you’ll see (reverse-i-search)
.
现在按Ctrl + R; 您会看到(reverse-i-search)
。

Just start typing: the most recent command to include the characters you’ve typed will show up.
只需开始输入:就会出现包含您输入的字符的最新命令。

Include as much detail as necessary until the precise thing you’re looking for shows up. When it does, press Enter and the command will run instantly.
包括尽可能多的细节,直到您要查找的确切内容出现为止。 完成后,按Enter键,该命令将立即运行。

Yeah, I could have found a more useful example, but you get the idea: press Ctrl+R, type until you see a match, then press Enter.
是的,我本可以找到一个更有用的示例 ,但您明白了:按Ctrl + R,键入直到看到匹配项,然后按Enter。
Screenshots don’t get across how quickly this all works, so here’s a GIF of me pulling up a common command in just a few keystrokes:
屏幕截图无法说明所有操作的速度,因此这是我的GIF,仅需几次按键即可提出一个常见命令:

Keep this keyboard shortcut handy if there are a few long-ish commands you type on a regular basis, because it’s a huge time saver.
如果您要定期输入一些长命令,请保持此键盘快捷键的方便,因为这可以节省大量时间。
Oh, and if you’re worried about someone else stumbling upon any embarrassing commands, you could clear your Terminal history. I won’t tell anyone.
哦,如果您担心其他人踩到任何令人尴尬的命令,可以清除终端的历史记录 。 我不会告诉任何人。
翻译自: https://www.howtogeek.com/323355/instantly-search-your-terminal-history-with-a-keyboard-shortcut/
rk键盘快捷键快捷键不一致