Search code examples
javaapache-karafkaraf

Karaf: how to repeat previous command


How can I repeat previous command in apache karaf? I tried up and down arrows but I don't get previous commands.


Solution

  • If you read manual of the Apache Karaf, default arrows can be used to navigate in command history;

    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

    Also, you can print history with this command

    shell:history prints the commands history