oh!! just noticed, you mean to say you are getting the same time stamp for all the commands ?
I got the problem, the timestamp for command lines that executed in the previous sessions may not valid, as the time was not tracked. Even I see the same thing with my Debian. 463 2010-08-25 10:16:48 ls -ltr 464 2010-08-25 10:16:48 xpdf mastering-unix-shell-scripting.9780471218210.21259.pdf 465 2010-08-25 10:16:48 tmux 466 2010-08-25 10:16:48 startx 467 2010-08-25 10:16:48 vim -x dhana 468 2010-08-25 10:16:48 vim dhana 469 2010-08-25 10:16:48 clear 470 2010-08-25 10:16:48 tvtime 471 2010-08-25 10:16:48 su 472 2010-08-25 10:16:48 su - dhana 473 2010-08-25 10:16:48 ls -ltr 474 2010-08-25 10:16:48 xpdf mastering-unix-shell-scripting.9780471218210.21259.pdf 475 2010-08-25 10:16:48 xpdf mastering-unix-shell-scripting.9780471218210.21259.pdf 476 2010-08-25 10:16:48 clear 477 2010-08-25 10:16:48 ls -ltr 478 2010-08-25 10:16:48 soffice UNIXShell-ScriptingBasics.ppt 479 2010-08-25 10:16:48 tvtime 480 2010-08-25 10:16:48 su 481 2010-08-25 10:16:48 google-chrome & 482 2010-08-25 10:16:48 ls -ltr 483 2010-08-25 10:16:48 tar zxf AL 484 2010-08-25 10:16:48 tar zxf ALP-listings.tar.gz 485 2010-08-25 10:16:48 cd ALP- 486 2010-08-25 10:16:48 cd ALP-listings 487 2010-08-25 10:16:48 ls *Dhanasekaran.A * +91 9976954325 [email protected] On Wed, Aug 25, 2010 at 10:17 AM, Arun Khan <[email protected]> wrote: > On Wed, Aug 25, 2010 at 12:13 AM, Tha.Suresh <[email protected]> > wrote: > > Add Timestamp to history > > > > $ export HISTTIMEFORMAT="%F %T " > > > > History usually only gives the command number and the command. This > > will add a timestamp to the history file. > > Thanks for this great tip. I was just thinking about this a few days > back. Learn something new everyday :) > > -- Arun Khan > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
