Results 1 to 2 of 2
I'm logged in as root and I can see that someone else from a questionable ip is logged in as root too. Is there a way to see the history ...
- 08-17-2006 #1Just Joined!
- Join Date
- Feb 2003
- Posts
- 22
History for different tty
I'm logged in as root and I can see that someone else from a questionable ip is logged in as root too. Is there a way to see the history on a different tty in this case mine is pts/1 and theirs is pts/0
Thanks.
- 08-17-2006 #2
Not right now, as your command history is stored in a buffer. You can add this to the ~/.bashrc (or /etc/profile, /etc/bashrc, anything that is sourced when you log in):
This tells BASH to append the history (not overwrite) and to do so every time you return to prompt.Code:shopt -s histappend export PROMPT_COMMAND='history -a'
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy


Reply With Quote
