1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-21 20:24:09 +02:00

history: add and example to add to history without running (#17674)

This commit is contained in:
Managor 2025-08-16 06:22:12 +03:00 committed by GitHub
parent fab44cc065
commit 72adae9049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
# history # history
> Command-line history. > Manage command-line history.
> More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history>. > More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history>.
- Display the commands history list with line numbers: - Display the commands history list with line numbers:
@ -26,3 +26,7 @@
- [d]elete the history entry at the specified offset: - [d]elete the history entry at the specified offset:
`history -d {{offset}}` `history -d {{offset}}`
- Add a command to history without running it:
`history -s {{command}}`