history do?display or manage the shell command history (shell builtin).
▸ Explain your own history command →$ history
$ history 20
$ history -c
$ history -w
| -c | clear the entire history list |
| -d | delete the history entry at this position |
| -a | append the new history lines to the history file |
| -r | read the history file and append it to the current list |
| -w | write the current history out to the history file |
| -n | read the history lines not already read from the file |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.