how to put date and timestamp to bash_history ?
Hi all,
question like in the subject. how to put date and timestamp to bash_history ? I havent seen any good informations on the google. help... Dlugasx |
Hi Dlugasx,
Actually i dint understand your question.As for the other files in the LINUX, .bash_profile will also be having a date & timestamp.Kind request to please describe your query/issue u r facing in detail... Regards, RHADMN |
Quote:
If You know what for is bash_history, its easy to understand. try to execute command: history do You see when each command has been executed ? 1001 2008-07-31 19:42:46 command1 1002 2008-07-31 19:42:54 command2 1003 2008-07-31 19:43:00 command3 1004 2008-07-31 19:43:25 ... I have found nice tutorial how to format bash_profile. Thanks! Post is solved... http://www.zarrelli.org/blog/2008/07...y-time-format/ |
History With Date/Time Stamp
Quote:
Thanks for the info !! |
Note thought that while this web log presents its solution, which you could get from reading the Bash manual page anyway, in a next best thing to sliced bread kind of way it fails to mention that this will only work with recent Bash versions. It is not backward compatible as well.
|
All times are GMT -5. The time now is 10:51 PM. |