Need your help in understanding the configurations related to history file.
I have few questions regarding this.
(i) Where I can configure the file in which command history would be stored.
On my hp-ux box, for one user history is stored in .history file whereas for other users it is stored in .sh_history file.
I am not able to understand why 223 commands are stored in .sh_history file whereas HISTSIZE env variable is set to 100 only.
Are there any configurations available which will overwrite the HISTSIZE env variable?
(iii)Is there any configs/commands available that will store the timestamp along with the command executed in the history file?
The Shell History file is not a text file and is unsuitable for reading with the wc command. All you'll get is a count of the number of line-feed characters it finds.
Also see the manual description for HISTSIZE for whichever Shell you are using. It does not imply that the figure is exact.
The user with a history file called .history is probably running csh rather than the more usual sh or ksh .