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

Raspberry Pi OS • Re: Lost console history when shutting down with on/off button

$
0
0
Sorry if this is unclear. Try this test:

On a RPi 5, running Bookworm, with a Desktop:
Open a terminal, type 'history'.
Type in a new command.
Shutdown with Shutdown->Shutdown.
Restart.
Open a terminal, type 'history'.
The last command is added to the end of the history , on my setup.
Type in a new command.
Shutdown with a double press to the power button.
Restart.
Open a terminal, type 'history'.
The last command is not added to the end of the history, on my setup.

Suspect (although not tested) the same will occur if sshing to the Pi.

Is it the same 'new command' that you are issuing?

I can't give you chapter and verse but I have a feeling that history-logging suppresses duplicates?

Statistics: Posted by B.Goode — Thu May 16, 2024 6:31 pm



Viewing all articles
Browse latest Browse all 6008

Latest Images

Trending Articles



Latest Images