Go Back   Cloud Computing > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-08, 20:48
BOD Member
 
Join Date: Oct 2008
Posts: 30
Default Set history command with time stamps.

If you are using a bash shell then using following command you can set the time in history so that you can found out the correct time period when command was fired.

Quote:
HISTTIMEFORMAT="%D %T"
__________________
Regards
George
Reply With Quote
  #2 (permalink)  
Old 10-03-08, 16:51
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

If you are setting HISTTIMEFORMAT for the first time then all entries prior to setting the variable will get the time stamp of the time when the variable was set.

Exit your bash and open a new one and take a look:

tail ~/.bashrc_history.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 20:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.