User Tools

Site Tools


docs:tips_n_tricks:bash.html

This is an old revision of the document!


bash

Dont keep edits in history (as zsh does)

History operations

Save history without exiting bash

history -A

Show history with full timestamps

HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S ' history

Undo edits in history

M-r (or ESC,r) Restore last version
erase line and press ENTER
C-x,C-u Undo last key
C-_
C-/

References:

docs/tips_n_tricks/bash.html.1711759018.txt.gz · Last modified: 30.03.2024 01:36 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki