Having several people using the same user/password at same time is not a good idea.
That said, there are some commands may help you.
I'm assuming you are using bash, which by default, updates its history only on exit.
To solve this you can set the shell option histappend, causing all new history lines to be appended, and avoiding that multiple logins overwrite each other's history.
Code:
shopt -s histappend
To ensure that history is written after each command. You can may add "history -a" to the PROMPT_COMMAND variable. This variable contains a command to be executed before any new prompt is shown, and is therefore run after every interactive command is executed.
Code:
PROMPT_COMMAND="history -a"
export PROMPT_COMMAND
Additionally, you can increase the history size (default is 500)
Code:
unset HISTFILESIZE
HISTSIZE=10000
export HISTSIZE
You can add these commands to your ~/.bashrc