posted 11 years ago
Hello dhoruboyina manjunath,
Welcome to CodeRanch!
As above posts mention, command history is already store in shell's history file (e.g. ~/.bash_history in case of bash).
Also, since this file is in home directory, there will be separate history file per user.
I hope this helps.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)