Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6189

Raspberry Pi Connect • Re: cli commands not saved to $HOME/.bash_history

$
0
0
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. :roll:

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



Viewing all articles
Browse latest Browse all 6189

Trending Articles