- CheckMates
- :
- Products
- :
- General Topics
- :
- Re: How to enable history on cli gaia?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jump to solution
How to enable history on cli gaia?
Is there any SK to follow to enable history search on gaia?
1 Solution
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Edit /etc/bashrc and change the parameter HISTFILESIZE from 0 to your desired size.
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
History is not maintained between sessions.
However, executed commands should appear in /var/log/messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My mistake the history that i want to have is for expert mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Edit /etc/bashrc and change the parameter HISTFILESIZE from 0 to your desired size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks tested and works!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PhoneBoy Is there a way to clear history if you pasted something sensitive that isn't a Checkpoint command that you don't want to be seen. In clish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go in Expert mode and edit /hone/<user>/.clish_history
