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 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
Where we can get the logs for a command execution successfully? susinthaa SUN Solaris 4 07-10-2007 12:35 AM
logs lordmod UNIX for Advanced & Expert Users 1 02-13-2007 06:41 PM
scp logs gsr_kashyap Linux 0 08-02-2006 03:22 AM
rcp logs ilkergu HP-UX 0 08-08-2005 03:51 AM
Logs jtapia UNIX Desktop for Dummies Questions & Answers 4 03-28-2002 12:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2008
mcraul mcraul is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 80
command logs

Is there a place were the system stores logs of command's? like does it log whatever changes I made?

I'm using a Centos 5.x box

Thank you
  #2 (permalink)  
Old 06-23-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
Not normally. UNIX does keep a history file of your recent commands. The fc command for your system can recall commands recently issued. The file itself is indentifed in the environment variable HISTFILE

Code:
echo $HISTFILE
All of this is predicated on you using a modern, POSIX shell. If your shell is ancient, I cannnot tell you what to do. I'm guessing you are using bash, which is POSIX-compliant, since CentOS 5.1 is the current release.
  #3 (permalink)  
Old 06-23-2008
mcraul mcraul is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 80
ok right I was able to use this to bring up previous commands.
what i was trying to do was find an ip address that i had pinged yesterday. but im guessing if the server is rebooted that that history is lost.
Sponsored Links
Closed Thread

Bookmarks

Tags
unix commands

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 09:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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