How can I repeat previous command in apache karaf? I tried up and down arrows but I don't get previous commands.
Asked
Active
Viewed 272 times
0
-
1@donwvoter - Please, give explanations. – Pavel_K Aug 22 '16 at 06:54
1 Answers
1
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

Ömer Faruk AK
- 2,409
- 5
- 26
- 47
-
1Just a small remark: in UNIX environment, in order to find the last command you don't need to use the arrow key, but you need to type "Ctrl+P" ("P" stands for "Previous"), the arrow key comes from a special configuration. – Dominique Aug 22 '16 at 08:35