Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| 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. |
|
 |
06-24-2005, 03:56 AM
|
#1
|
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Rep:
|
History command
Is it possible to list the history for a specific user?
|
|
|
|
06-24-2005, 04:00 AM
|
#2
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Rep:
|
What, their bash history?
Yes: "less /home/username/.bash_history"
|
|
|
|
06-24-2005, 04:04 AM
|
#3
|
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
Thanks oneandoneis2, and what if i want to clear it incase i dont want any one to view my last 100 commands.
Last edited by amer_58; 06-24-2005 at 04:05 AM.
|
|
|
|
06-24-2005, 04:18 AM
|
#4
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Rep:
|
- Whatever text editor you happen to like to prune specific entries.
- rm .bash_history
- history -c
|
|
|
|
06-24-2005, 06:23 AM
|
#5
|
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
if you have access to that users bash, then "histroy -c" would do the trick
|
|
|
|
06-24-2005, 12:26 PM
|
#6
|
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
Thanks guys.
|
|
|
|
| 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 09:25 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
|
|