Operating System - HP-UX
1833875 Members
1795 Online
110063 Solutions
New Discussion

how to setup a history file

 
SOLVED
Go to solution
pedliz11
Frequent Advisor

how to setup a history file

how do you setup a history file that will caputure all commands issued in that shell
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: how to setup a history file

For the POSIX shell, the history file defaults to .sh_history in the user's home directory; you don't have to do anything. You can set the filename explicitly by setting the environment variable HISTFILE. There is also a variable, HISTSIZE, which controls the maximum size of the history file.

Man sh-posix and look for HISTFILE.
If it ain't broke, I can fix that.
Robert Salter
Respected Contributor

Re: how to setup a history file

James George_1
Trusted Contributor

Re: how to setup a history file

Hi

See this link for setting all your variables etc ..etc ...

Rgds / James
forum is for techies .....heaven is for those who are born again !!
James George_1
Trusted Contributor

Re: how to setup a history file

Hi

See this link for setting all your variables etc ..etc ...

http://docs.hp.com/en/B2355-90046/


Rgds / James
forum is for techies .....heaven is for those who are born again !!