One poster suggested using `history -a`, and another suggested using `history -w` to explicitly save your command history.
There is an important difference between them: `history -a` appends "new" history lines to the history file, while `history -w` overwrites the previous contents.
Choose carefully, especially if you have multiple bash sessions open to the same host. Image may be NSFW.
Clik here to view.
There is an important difference between them: `history -a` appends "new" history lines to the history file, while `history -w` overwrites the previous contents.
Choose carefully, especially if you have multiple bash sessions open to the same host. Image may be NSFW.
Clik here to view.

Statistics: Posted by bls — Sat Dec 21, 2024 3:55 pm