According to the history --help:
--disable - will disable history expansion (but will not clear the previously recorded history); --clear - will clear the in-memory history (but not the file one).
however following sequence of commands will clear the content ~/.jboss-cli-history file
[pkremens@dhcp-10-40-5-180 ~]$ wc ~/.jboss-cli-history 4 6 44 /home/pkremens/.jboss-cli-history
[standalone@localhost:9990 /] history --disable [standalone@localhost:9990 /] history --clear [standalone@localhost:9990 /] exit
[pkremens@dhcp-10-40-5-180 ~]$ wc ~/.jboss-cli-history 0 0 0 /home/pkremens/.jboss-cli-history
- is cloned by
-
WFCORE-1359 Exiting the CLI after disabling and clearing history will clear content of .jboss-cli-history
- Resolved
- is related to
-
JBEAP-3219 history --clear will clear also .jboss-cli-history file (management-cli-guide)
- Closed
- relates to
-
JBEAP-3947 Management CLI Guide - wrong description of "history --clear" command
- Closed