Loading ...
Sorry, an error occurred while loading the content.

Re: [redhat] date/timestamp history file

Expand Messages
  • Somael Kabir
    try this one: export HISTTIMEFORMAT= %F %T ... [Non-text portions of this message have been removed]
    Message 1 of 4 , Sep 17, 2009
    • 0 Attachment
      try this one:

      export HISTTIMEFORMAT="%F %T "




      On Thu, Sep 17, 2009 at 10:23 PM, Dan <hyattdj@...> wrote:

      >
      >
      > #export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
      >
      > When I added this to my /root/.bashrc file, it added datestamps to my
      > history fine.
      >
      > The problem is that all command prior to my login go my login date
      > stamp..so I log out and back in....again it gives me the datestamp of my
      > latest login.
      >
      > Any suggestion on how to fix this so it is the datestamp of the command
      > given????
      > Dan
      > "The opinions expressed here are not necessarily my own"
      > KG6KTB
      > '88 XJ
      > '82 CJ
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Dan
      That is nice...but Here is my problem... 993 2009-09-17 11:56:47 ls 994 2009-09-17 11:56:47 chmod 777 run_sql.sh 995 2009-09-17 11:56:47 c 996
      Message 2 of 4 , Sep 17, 2009
      • 0 Attachment
        That is nice...but Here is my problem...

        993 2009-09-17 11:56:47 ls
        994 2009-09-17 11:56:47 chmod 777 run_sql.sh
        995 2009-09-17 11:56:47 c
        996 2009-09-17 11:56:47 clear
        997 2009-09-17 11:56:47 ll
        998 2009-09-17 11:56:47 vi run_sql.sh
        999 2009-09-17 11:56:47 clear
        1000 2009-09-17 11:56:47 exit
        1001 2009-09-17 11:56:53 history

        how do I get it to retain dates in between logins? other then giving me the datestamp of my login?
        Dan
        "The opinions expressed here are not necessarily my own"
        KG6KTB
        '88 XJ
        '82 CJ







        ________________________________
        From: Somael Kabir <somael@...>
        To: redhat@yahoogroups.com
        Sent: Thursday, September 17, 2009 10:44:58 AM
        Subject: Re: [redhat] date/timestamp history file


        try this one:

        export HISTTIMEFORMAT= "%F %T "

        On Thu, Sep 17, 2009 at 10:23 PM, Dan <hyattdj@yahoo. com> wrote:

        >
        >
        > #export HISTTIMEFORMAT= "%h/%d - %H:%M:%S "
        >
        > When I added this to my /root/.bashrc file, it added datestamps to my
        > history fine.
        >
        > The problem is that all command prior to my login go my login date
        > stamp..so I log out and back in....again it gives me the datestamp of my
        > latest login.
        >
        > Any suggestion on how to fix this so it is the datestamp of the command
        > given????
        > Dan
        > "The opinions expressed here are not necessarily my own"
        > KG6KTB
        > '88 XJ
        > '82 CJ
        >
        > [Non-text portions of this message have been removed]
        >
        >
        >

        [Non-text portions of this message have been removed]




        [Non-text portions of this message have been removed]
      • Dan
        ____________ _________ _________ __ From: Somael Kabir To: redhat@yahoogroups. com Sent: Thursday, September 17, 2009 10:44:58 AM Subject:
        Message 3 of 4 , Sep 17, 2009
        • 0 Attachment
          ____________ _________ _________ __
          From: Somael Kabir <somael@gmail. com>
          To: redhat@yahoogroups. com
          Sent: Thursday, September 17, 2009 10:44:58 AM
          Subject: Re: [redhat] date/timestamp history file

          try this one:

          export HISTTIMEFORMAT= "%F %T "

          On Thu, Sep 17, 2009 at 10:23 PM, Dan <hyattdj@yahoo. com> wrote:
          It looks like %D %T
          might be the fix.....
          It is so useful knowing what commands were run when sometimes...
          Maybe we need a GNU history for this :)
          >
          >
          > #export HISTTIMEFORMAT= "%h/%d - %H:%M:%S "
          >
          > When I added this to my /root/.bashrc file, it added datestamps to my
          > history fine.
          >
          > The problem is that all command prior to my login go my login date
          > stamp..so I log out and back in....again it gives me the datestamp of my
          > latest login.
          >
          > Any suggestion on how to fix this so it is the datestamp of the command
          > given????
          > Dan

          ps sorry for the top post
          >
          > [Non-text portions of this message have been removed]
          >
          >
          >

          [Non-text portions of this message have been removed]

          [Non-text portions of this message have been removed]




          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.