Find the answer to your Linux question:
Results 1 to 2 of 2
When I do the command it shows what commands were issued..that's good BUT I need to know or would like to see a date/time stamp on them. Is that possible?? ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139

    History command

    When I do the command it shows what commands were issued..that's good
    BUT
    I need to know or would like to see a date/time stamp on them. Is that possible??

    thanks
    Mace

  2. #2
    Linux User
    Join Date
    Jun 2006
    Posts
    311

    Set HISTTIMEFORMAT

    Hi Mace,

    I need to know or would like to see a date/time stamp on them. Is that possible??
    Of course. If you want to see timestamp also for the history command, set the shell variable HISTTIMEFORMAT to 1 and the time stamp information associated with the command will also get written into the history file, which by default is $HOME/.bash_history for Bash and can be changed by modifying the shell variable HISTFILE.

    With Regards,
    Thinker

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...