Linux history log

For the user that use the Linux, it will be important to know where is the history log file need to check

Shell command -line history

/root/.bash_history

or use the command

history

show the history by date

export HISTTIMEFORMAT='%F %T '
history

MySql query history

/root/.mysql_history

Leave a Reply

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