| Red Hat This forum is for the discussion of Red Hat Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-07-2007, 03:17 PM
|
#1
|
|
Member
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148
Rep:
|
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?
|
|
|
|
02-07-2007, 03:26 PM
|
#2
|
|
Member
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107
Rep:
|
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 "."
Or if you are trying to view it through a graphical file manager you will need to enable something like "Show hidden files and directories" from it's menu.
|
|
|
|
02-07-2007, 03:28 PM
|
#3
|
|
Member
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148
Original Poster
Rep:
|
hmm, so maybe my next question is, how do I know where my home directory is?
|
|
|
|
02-07-2007, 04:36 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
Typing echo $HOME in a terminal window usually gives the answer to that question.
|
|
|
|
02-07-2007, 04:54 PM
|
#5
|
|
Member
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148
Original Poster
Rep:
|
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.
|
|
|
|
02-07-2007, 06:35 PM
|
#7
|
|
Member
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148
Original Poster
Rep:
|
Quote:
|
Originally Posted by gilead
|
Thanks, I'll definitely look through that. Yes, files in /var/log, several that I didn't know existed or would know to delete. I am a web programmer so I know about web server security from a programming standpoint, but only dabble in Linux server administration. The problem is, my access has been yanked down to nothing, so I can't run half of those commands. They basically told me if I want anything on the server now, I have to hand it to an admin and he'll put it on for me. The server is fairly insecure in my opinion though (I just signed on), so I'm sure that I will be able to investigate some of this with my read access to virtually every file on the server.
Last edited by subnet_rx; 02-07-2007 at 06:37 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:13 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|