Karaf:如何重复上一个命令

Karaf: how to repeat previous command

如何在 apache karaf 中重复之前的命令?我尝试了向上和向下箭头,但我没有收到之前的命令。

如果您阅读 Apache Karaf 的手册,可以使用默认箭头在命令历史记录中导航;

Key binding

Like on most Unix environment, Karaf console supports some key bindings:

the arrows key to navigate in the commands history

https://karaf.apache.org/manual/latest/#_key_binding

此外,您可以使用此命令打印历史记录

shell:history prints the commands history