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>
This commit is contained in:
@@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
`history`
|
`history`
|
||||||
|
|
||||||
|
- Display the last 20 commands:
|
||||||
|
|
||||||
|
`history {{20}}`
|
||||||
|
|
||||||
- Clear the commands history list (only for current `bash` shell):
|
- Clear the commands history list (only for current `bash` shell):
|
||||||
|
|
||||||
`history -c`
|
`history -c`
|
||||||
|
Reference in New Issue
Block a user