简体   繁体   English

有没有办法使[UP | 键显示Linux中的最新命令?

[英]Is there a way to make the [UP| key show the most recent command in Linux?

On the Linux virtual machine I'm using, whenver I press the up-key I get this : 在我正在使用的Linux虚拟机上,每当我按向上键时,都会显示以下信息:

^[[A

But what I want is for it to do like the Mac , which is to show the most recent command or text I entered into the terminal. 但是我想要的就是像Mac一样,它可以显示我输入到终端机中的最新命令或文本。

thanks! 谢谢!

In those cases I always use rlwrap . 在那种情况下,我总是使用rlwrap

Almost for sure, your Linux distribution already has some package with this tool. 几乎可以肯定的是,您的Linux发行版已经带有此工具的某些软件包。 For example, Debian: rlwrap wheezy 例如,Debian: rlwrap wheezy

EDIT 编辑

Another nice link I've just found where you can see how to use rlwrap with SQL*Plus: rlwrap and SQL*Plus . 我刚刚找到了另一个不错的链接,您可以在其中看到如何将rlwrap与SQL * Plus一起使用: rlwrap和SQL * Plus

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM