history: list last n commands from the history (#4138)

* Added history command sample

* Update pages/common/history.md

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
client-spec/clarity
SirGlorg 2020-07-01 12:46:09 +02:00 committed by GitHub
parent d1227ba2e3
commit fee169f50c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
`history`
- Display the last 20 commands:
`history {{20}}`
- Clear the commands history list (only for current `bash` shell):
`history -c`