Quantcast
Viewing all articles
Browse latest Browse all 5085

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

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

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



Viewing all articles
Browse latest Browse all 5085

Trending Articles