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.
36 lines
565 B
Markdown
36 lines
565 B
Markdown
5 years ago
|
|
||
|
Use `history` to view command history
|
||
|
|
||
|
`history`{{execute T2}}
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
`history -h`{{execute T2}}
|
||
|
|
||
|
```bash
|
||
|
[arthas@48]$ history -h
|
||
|
USAGE:
|
||
|
history [-c] [-h] [n]
|
||
|
|
||
|
SUMMARY:
|
||
|
Display command history
|
||
|
|
||
|
EXAMPLES:
|
||
|
history
|
||
|
history -c
|
||
|
history 5
|
||
|
|
||
|
OPTIONS:
|
||
|
-c, --clear clear history
|
||
|
-h, --help this help
|
||
|
<n> how many history commands to display
|
||
|
```
|
||
|
|
||
|
## Set number of history commands to display
|
||
|
|
||
|
`history 5`{{execute T2}}
|
||
|
|
||
|
## Clear history
|
||
|
|
||
|
`history -c`{{execute T2}}
|