Thread: Command history
View Single Post

  #2 (permalink)  
Old 04-26-2006, 05:57 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,103
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote