date and time to bash history

ако искаме да добавим дата и час в логовете

mcedit $HOME/.bashrc

добавяме следния ред

export HISTTIMEFORMAT="%h/%d - %H:%M:%S "

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *