• Timestamp in bash history

    If you want to record a time-stamp history on your BASH environment ,You can do that by running the following commands :

    echo -e 'export HISTCONTROL=ignorebothnexport HISTTIMEFORMAT="%d/%m/%y %T "' >>~/.bash_profile
    echo -e 'export HISTCONTROL=ignorebothnexport HISTTIMEFORMAT="%d/%m/%y %T "' >>/etc/profile

     

    Categories: Linux

    Comments are currently closed.