Regarding SunOS history

Hi all,

I am working on SunOS bash shell. Whenever I see my

history

by typing it, I can see commands executed till now. But when i look at my .bash_history, it does not gets polpulated by the commands i ran, since the beginning of my present login.

Once I exit and relogin, I can see .bash_history populated ( appended ) with commands ran during last login.

My queries being:

1.) Is it a default behaviour?
2.) Where actually the intermediate history is stored? ( login-logoff )

More inputs :

 env | grep -i hist

yields no result.

 cat .*profile* | grep -i hist

yields no result.

Please guide .

Thanks,
Dipan:)

Yes.

In memory.

Should you want immediate storage, switch to ksh.