[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Seeing command history when using MATE terminal



David wrote:
> On Sat, 18 Apr 2020 at 20:20, Richard Owlett <rowlett@cloud85.net> wrote:
>>
>> I can see any *ONE* previous commands by using the up-arrow key.
>> But I need to see the *complete* history. F1 is no "Help".
>> Obviously its stored in a file. Where?
>
> Reading https://mywiki.wooledge.org/BashFAQ/088 gives some tips
> that might be relevant if some history is missing:
> * bash updates its history only on exit (unless history -a is used)
> * and it overwrites the existing history file with the new version
> * so if a user runs multiple shells, each shell exit will overwrite the existing
> history file, the result is that only the last shell to exit will have
> its history
> preserved, and the history of the others will be lost.

  yes, that among other fun things made me decide to just
remove the history file upon exit and then when it starts up
each sesssion i preload the history stack with a few commands
i use the most (using history -s "command") in .bashrc .


  songbird


Reply to: