cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
GGiorgakis
Nickel

How to enable history on cli gaia?

Jump to solution

Is there any SK to follow to enable history search on gaia?

0 Kudos
1 Solution

Accepted Solutions
Highlighted

Re: How to enable history on cli gaia?

Jump to solution

Edit /etc/bashrc and change the parameter HISTFILESIZE from 0 to your desired size.

 

5 Replies
Admin
Admin

Re: How to enable history on cli gaia?

Jump to solution
In clish, you can up/down arrow on previously executed commands in the same session.
History is not maintained between sessions.
However, executed commands should appear in /var/log/messages.

Re: How to enable history on cli gaia?

Jump to solution
The answer is not completely correct, in CLISH there is a buffer that does survive logout and login, however there is a unclearity in there, sometimes I see commands that were issued on that system 5 sessions ago and sometimes the commands I get back from history are indeed from the previous session.
In expert mode all the history remembers is the current session, depending also on the default shell for the user, if that is bash than it will remember all commands even if you go into clish and return back to bash. However when you go into expert mode, it will only remember the commands that you issue untill you return to clish. the next time you go to expert the buffer is empty again.
Regards, Maarten
GGiorgakis
Nickel

Re: How to enable history on cli gaia?

Jump to solution
My mistake the history that i want to have is for expert mode
0 Kudos
Highlighted

Re: How to enable history on cli gaia?

Jump to solution

Edit /etc/bashrc and change the parameter HISTFILESIZE from 0 to your desired size.

 

GGiorgakis
Nickel

Re: How to enable history on cli gaia?

Jump to solution
Thanks tested and works!
0 Kudos