Where's my bash history?
It may be a simple question I know, but I am working through a terminal on AS 2.1. I have always worked on "desktop" linux systems and don't have a /home directory. Where are user's .bash_history files stored on this server?
|
They are stored inside the user's home directory. For example the superuser root's bash_history file could be found at the location /root/.bash_history.
Please note the file .bash_history is a hidden file. You will need to provide the "a" argument to ls in order to view files starting with a period "." Quote:
|
hmm, so maybe my next question is, how do I know where my home directory is?
|
Typing echo $HOME in a terminal window usually gives the answer to that question.
|
thanks. Basically, my account has been compromised and malicious commands executed on the server. It doesn't look like the history file gives any kind of detailed information I need though, and other log files were deleted. So I guess I'm going to have to live with the fact that management thinks I screwed up, then tried to cover it up.
|
By other log files, do you mean all of the info in /var/log?
Have a look through the info here at http://www.linuxquestions.org/questi...ad.php?t=45261. A good one to start with is CERT's Intruder Detection Checklist. I'd also recommend http://www.cert.org/tech_tips/root_compromise.html |
Quote:
|
All times are GMT -5. The time now is 12:45 PM. |