enable bash history in Gaia and SPLAT

From cpwiki.net
Revision as of 14:33, 22 November 2016 by Nighthawk (Talk | contribs)

Jump to: navigation, search
Check Point Profressional Services

by default, bash history is on but commands run are not save to the .bash_history file to be accessed upon you next login.

[Expert@ckkpmgr]# set -o | grep history
history         on
[Expert@ckkpmgr]# echo $HISTFILESIZE
0


to enable it globally for all users

[Expert@myfirewall]# sed -i -e 's/HISTFILESIZE=0/HISTFILESIZE=1000/' /etc/bashrc; source /etc/bashrc

verify it worked

[Expert@ckkpmgr]# echo $HISTFILESIZE
10000

bash command history is saved upon logout