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

How to change timezone (Linux server)

How to change your server time zone, I bet everyone know how to edit it on Window server. But for the Linux server, you need to use command as below

Change to GMT

ln -sf /usr/share/zoneinfo/GMT /etc/localtime

Change to EST

ln -sf /usr/share/zoneinfo/EST /etc/localtime