1832801 Members
3009 Online
110045 Solutions
New Discussion

Re: HISTSIZE problem

 
SOLVED
Go to solution
peterchu
Super Advisor

HISTSIZE problem

I set the HISTSIZE to very large size , but still can't use ESC + K to list the history , I checked that the file /.sh_history just have a few lines inside , I use UNIX 11 , could suggest what is wrong ? thx.

# History Setting
export HISTFILE=~/.sh_history
export HISTSIZE=200000

3 REPLIES 3
Stuart Browne
Honored Contributor
Solution

Re: HISTSIZE problem

HP-UX groups are over there http://forums1.itrc.hp.com/service/forums/familyhome.do?familyId=117
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: HISTSIZE problem

Try two line variable set up. That seems to work better for me in /etc/profile and .profile

Can't say why, don't know.

HISTFILE=~/.sh_history
export HISTFILE
HISTSIZE=200000
export HISTSIZE

Also make sure your .profile or anything its calling is not overriding your /etc/profile settings.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor

Re: HISTSIZE problem

Try to set the editor=vi in your .profile.

HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`
HISTSIZE=1000
EDITOR=vi
export HISTFILE HISTSIZE EDITOR

Regards,
Robert-Jan