Back to Arthas

history

site/docs/en/doc/history.md

3.1.0604 B
Original Source

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

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

Usage

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