Operating System - HP-UX
1831593 Members
3005 Online
110027 Solutions
New Discussion

How do I turn on the history function?

 
ekke2
Occasional Advisor

How do I turn on the history function?

How do I turn on the history function in
HP-UX ver 11.0 operatingsystem?
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: How do I turn on the history function?

Hi,

You need to edit $HOME/.profile and add

HISTFILE=$HOME/.sh_history
export HISTFILE

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: How do I turn on the history function?

Try as,

# set -o vi
# export HISFILE=$HOME/.history
# export HISTSIZE=1000

Put this in /etc/profile file. It will work.

--
Muthu
Easy to suggest when don't know about the problem!
Siddhartha M
Frequent Advisor

Re: How do I turn on the history function?

Chan 007
Honored Contributor

Re: How do I turn on the history function?

There are few ways of setting up the HISTFILE Either it can be set in each user's profile $HOME/.profile OR system's profile /etc/profile

Chan