LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 06-24-2005, 03:56 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
History command


Is it possible to list the history for a specific user?
 
Old 06-24-2005, 04:00 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
What, their bash history?

Yes: "less /home/username/.bash_history"
 
Old 06-24-2005, 04:04 AM   #3
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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.
 
Old 06-24-2005, 04:18 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
- Whatever text editor you happen to like to prune specific entries.

- rm .bash_history

- history -c
 
Old 06-24-2005, 06:23 AM   #5
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
if you have access to that users bash, then "histroy -c" would do the trick
 
Old 06-24-2005, 12:26 PM   #6
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
Thanks guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line history begby Linux - Software 7 03-12-2005 01:58 AM
Command history? King4lex Linux - Newbie 4 09-03-2004 08:35 PM
history with command line compu73rg33k Linux - Software 3 02-16-2004 03:36 AM
command history log??? granny Linux - Newbie 3 02-11-2003 04:03 PM
Terminal Command History? Allen614 Linux - General 3 01-14-2003 11:35 PM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration