The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with the History command cleansing_flame UNIX for Dummies Questions & Answers 2 02-04-2008 08:25 AM
Command history in AIX priya_v111 Shell Programming and Scripting 2 09-18-2006 11:48 AM
History command akash_wagh Filesystems, Disks and Memory 0 08-31-2005 02:54 AM
Command history a25khan UNIX for Dummies Questions & Answers 8 12-10-2003 02:05 AM
History Command jack UNIX for Dummies Questions & Answers 2 08-01-2001 10:01 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2001
Registered User
 

Join Date: Sep 2001
Location: India
Posts: 7
Thumbs up command history

Dear all,

I am using solaris 6 O.S. and root previlege.I want to know how to get history of commands given by diff. users logged into the server.
I know that history command gives the list of previous commands for that particular log in session. In the simillar manner can I get simillar history for other users logged into the system without "whodo" command.

Thanks in advance
Forum Sponsor
  #2 (permalink)  
Old 11-11-2001
Registered User
 

Join Date: Nov 2001
Location: Wilkes-Barre, Pa
Posts: 7
I can't speak directly for Solaris, but in HP-UX (my primary OS) each login of a user appends to a .sh_history file in the users home directory that contains all the commands a user last executed. (note that it is a hidden file). It doesn't have timestamps or anything, just a flat listing of commands ..

Give it a try, its worth a shot ...
  #3 (permalink)  
Old 11-13-2001
Registered User
 

Join Date: Oct 2001
Posts: 21
It depends on what shell they are using for instance in bash, the file is in their home directory, named .bash_history

Shimb0
  #4 (permalink)  
Old 11-14-2001
doeboy's Avatar
Registered User
 

Join Date: Oct 2001
Location: Here
Posts: 137
It really depends on the shell a particular user is using.

bash and ksh are a couple which do save command history to a file.

Here's some examples of some other shells and where they can store their history data:

sh: (no history function available)
ksh: ~/.sh-history
csh: ~/.history (if it doesn't exist, csh keeps history in memory only. See man pages for csh(1) for more information)
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0