版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/harris135/article/details/78576293

查看当前日期:

[root@localhost nginx]# date
Sun Nov 19 03:30:25 PST 2017
  • 1
  • 2

查看昨天日期

[root@localhost nginx]# date -d yesterday
Sat Nov 18 19:32:12 PST 2017
  • 1
  • 2

修改日期

[root@localhost nginx]# date -s '2017-11-19 19:31:45'
Sun Nov 19 19:31:45 PST 2017
[root@localhost nginx]# clock -w
[root@localhost nginx]# date
Sun Nov 19 19:31:48 PST 2017

相关文章:

  • 2021-10-06
  • 2021-12-29
  • 2021-11-27
  • 2022-03-06
  • 2022-02-21
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案