Table of Contents

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

#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