mirror of https://github.com/alibaba/arthas.git
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.
32 lines
614 B
Markdown
32 lines
614 B
Markdown
# 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 |
|
|
|
|
### 使用参考
|
|
|
|
```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
|
|
```
|