The first thing do do is to check whether the history is set:
set -o | grep history
If it is off then add the following to the ~/.bashrc:
set -o history
At the same time set the environment variables for holding the history
export HISTFILE=$HOME/.bash_history
export HISTSIZE=500
export HISTFILESIZE=500
This should have you up and running to get the history
To make sure the effects take place change the user with
[test@server ~] oracle -
set -o | grep history
If it is off then add the following to the ~/.bashrc:
set -o history
At the same time set the environment variables for holding the history
export HISTFILE=$HOME/.bash_history
export HISTSIZE=500
export HISTFILESIZE=500
This should have you up and running to get the history
To make sure the effects take place change the user with
[test@server ~] oracle -
Comments
Post a Comment