bash history buffer cache

view full story

http://www.unix.com – Moderators, Please excuse if I am in the wrong section. I have a question that someone may know the answer to. We know that a current bash shell keeps a record of all commands in a buffer. When the shell is terminated this buffer is written out to ~/.bash_history for the user. I know that in the current shell, you can access this buffer by using ctrl r for reverse history. That's fine if you are the user in that shell. The question that I have is: As root user, can I access that buffer of another shell open on the system? Perhaps in the /proc/pid format of some sort? Any help (HowTos)