Quote:
|
What happens when 2 people login at the same tme using the same username?
|
History is written for both users. As soon as first user logs out the bash writes back to history. Next if second user logs out (with same name) his/her history written into file. However, there is no way you can differentiate between two session using .bash_history file.
Use other commands such as w (for live session reporting) and lastcomm command to print out information about previously executed commands terminal (tty) or user wise.