You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/site/docs/en/doc/history.md

614 B

history

view command history.

::: tip history of commands will persisted in a file named history, so the history command can show all the history commands of current Arthas server ,but not only history in current session. :::

Options

Name Specification
[c:] clear all the history commands
[n:] view the nearest 5 commands

使用参考

#view the nearest 3 commands
$ history 3
  269  thread
  270  cls
  271  history 3
 #clear all the history commands
 $ history -c
 $ history 3
  1  history 3