I know there is a way to run an interactive console with command history support (even though the program does not inherently support it). However, I don't remember the command. Can anyone help me?

有帮助吗?

解决方案 2

Install the package rlwrap and run it like

$ rlwrap foo

to get command line history for the command foo.

其他提示

Try ledit.

E.g.

$ ledit mycommand
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top