Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Geomix7
Collaborator
Jump to solution

How to enable history on cli gaia?

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

0 Kudos
1 Solution

Accepted Solutions
Norbert_Bohusch
Advisor

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

 

View solution in original post

5 Replies
PhoneBoy
Admin
Admin
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.
Maarten_Sjouw
Champion
Champion
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
Geomix7
Collaborator
My mistake the history that i want to have is for expert mode
0 Kudos
Norbert_Bohusch
Advisor

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

 

Geomix7
Collaborator
Thanks tested and works!
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events