linux common commands using the collection (update)

First, change the time zone linux

  1. tzselect execute command -> select Asia -> select China -> select east China - Beijing, Guangdong, Shanghai, etc -> 1 and enter.

  2. tzselect executing the command select the time zone, time zone and did not change, only the last command prompt you can perform TZ = 'Asia / Shanghai'; export TZ and add this line to the .profile command, and then log out and log in again. Referring next to FIG date order to see result, the final time zone is CST, i.e. China Standard Time

  The above information comes from: https://jingyan.baidu.com/article/fa4125acb7328628ac70920e.html

 

Second, the comparison of the two servers time

  (1) using the command clockdiff ip time to view the two servers comparative data, delta is the time difference.

     Information Reference: https://www.jianshu.com/p/fb10516c0b05

Guess you like

Origin www.cnblogs.com/jasonpeng419/p/11956052.html