|
From: | Jürgen Weigert |
Subject: | Fwd: screen - bash history |
Date: | Tue, 9 Nov 2021 10:15:34 +0100 |
I have frequently noticed GNU Screen with multiple Bash shells, each shell/tab,
the history is routinely forgotten/lost.
A possible solution is to increase Bash history command and file size:
Here I increased from 150 to 15,000(lines/MB)
export HISTSIZE=15000
export HISTFILESIZE=15000
Sort of ridiculous, and I think the cause is more related to not safely exiting each shell/tab prior to halt.
Maybe the proper method to halt a system is to send a signal to GNU Screen, and place it within a halt.sh script?
Roger
> On Sun, Nov 07, 2021 at 06:20:08PM +0400, Vishal Priyatham wrote:
> Thanks Robin for the reply.Â
> looks like we lost the history then as the screen session killed
> now. Â
> Regards,
> Vishal
>
> On Sun, Nov 7, 2021 at 10:28 AM Robin Lee Powell
> <robinleepowell@gmail.com> wrote:
>
> Well, the normal shell history stuff.
> As far as screen goes, you can dump the scrollback and search for
> your shell prompt, but that's about it.
> On Sun, Nov 07, 2021 at 09:29:12AM +0400, Vishal Priyatham wrote:
> > Hi team,
> >
> > We are using screen utility on linux server for one of our
> projects.
> > We have some issue related to our application and wanted to check
> what were
> > some of the commands run in the past which caused the issue.
> > Is there a way to know the commands run inside the screen session?
> >
> >
> > Regards,
> > Vishal
[Prev in Thread] | Current Thread | [Next in Thread] |