Skip to content

Commit

Permalink
history: list last n commands from the history (tldr-pages#4138)
Browse files Browse the repository at this point in the history
* Added history command sample

* Update pages/common/history.md

Co-authored-by: Zlatan Vasović <[email protected]>

Co-authored-by: Zlatan Vasović <[email protected]>
  • Loading branch information
SirGlorg and zlatanvasovic authored Jul 1, 2020
1 parent d1227ba commit fee169f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/common/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

`history`

- Display the last 20 commands:

`history {{20}}`

- Clear the commands history list (only for current `bash` shell):

`history -c`
Expand Down

0 comments on commit fee169f

Please sign in to comment.