The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 12:25 PM
unix command history mm00123 SUN Solaris 3 12-03-2007 07:13 AM
Creating a command history feature in a simple UNIX shell using C -=Cn=- Shell Programming and Scripting 2 11-13-2007 01:04 AM
Command history in AIX priya_v111 Shell Programming and Scripting 2 09-18-2006 02:48 PM
command history vikasdeshmukh UNIX for Dummies Questions & Answers 3 11-14-2001 05:37 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-09-2005
Sabari Nath S Sabari Nath S is offline
Registered User
  
 

Join Date: Jul 2005
Location: Chennai
Posts: 46
how unix stores command history

Hi techies,

I have a doubt upon the command history utilities in Unix ...
As far as I know, history stores the event number and command for upto
that many number of previous commands executed in the HISTSIZE variable ... my doubt here is can we get the time in which these commands were executed and/or the user who did this ?? Does Unix store these details too in any file ...

Thanks in advance,

SNS
  #2 (permalink)  
Old 09-09-2005
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
im afraid not! but i may be wrong
Anyway , u can have those features if u dare to 'hack' the shell and store any useful information in a file of your own (originating_ip, terminal, user, time ...) but thats another long story which i guess you'r not looking for
  #3 (permalink)  
Old 09-09-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Depends on OS (and shell)....

Some OS's have the "lastcomm" command (if accounting is properly enabled) which will show this information....

Otherwise, if you're root, check the users history file (dependant on shell) in their home directory.

Cheers
ZB
  #4 (permalink)  
Old 09-10-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
On our systems, I have seen a file /tmp/.sh_history. This holds commands that have been run using ksh. Maybe you have something similar...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0