Operating System - HP-UX
1838334 Members
3037 Online
110125 Solutions
New Discussion

Size limit for .sh_history file

 
SOLVED
Go to solution
John Adonis
Occasional Advisor

Size limit for .sh_history file

Hi,
Is there any limit set to .sh_history file ?
If yes, how to increase the size ?
4 REPLIES 4
T G Manikandan
Honored Contributor
Solution

Re: Size limit for .sh_history file

Use the HISTSIZE

HISTSIZE=1000
HISTFILE=.sh_history
export HISTSIZE HISTFILE
Rajeev  Shukla
Honored Contributor

Re: Size limit for .sh_history file

Hi,
Have a look at man pages of ksh

history file is set using
HISTFILE=....
HISTSIZE=..is what you want to increase to have more commands in history.
The default is 128.
Increase this number to have number of commands you want in history.
These vaiables are generally set in .profile or /etc/profile


Rajeev
Alzhy
Honored Contributor

Re: Size limit for .sh_history file

I have mine set to 99999 and ksh/sh never complains...
Hakuna Matata.
Umapathy S
Honored Contributor

Re: Size limit for .sh_history file

For ksh the default size is 128.

my setting is
export HISTSIZE=5000

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!