之前唯一会用的终端快捷键只有 up 和 down 。碰到长串命令中打错几个字母就很麻烦了,今天学到几个快捷键分享下。 首先勾选设置-》键盘-》使用 option 键作为 meta 键。 然后就可以使用如下快捷键了: control + a / e 回到命令行头/尾 option + b / f 向前/后跳一个单词 control +u /k 删除光标前/后 所有单词 control + y 撤销上个操作 Enjoy It ! 最后有个好玩的命令,查看最常用的10个命令(最近500个命令) awk ‘{print $1}’ ~/.bash_history | sort | uniq -c | sort -gr | head
-
Pages
-
Recent Posts
-
Recent Comments
- xhan: 哇开源项目,赶紧收藏了。
- Du Song: 建议看下Fluid / Fluidium,封装网页应用很方便,功能也比较多。
- Johnkf: One of my friends already told me about this place and I do not regret that I found this article.
- reobsete-online: Many thanks.
- Ken Chung: I am developing an iPhone/iPad app. Would you be interested in helping me? I’m based in Shanghai. My...