//查看服务器时间
date
//将日期设置为2014年6月18日
[root@localhost ~]# date -s 06/18/14
//将时间设置为14点20分50秒
[root@localhost ~]# date -s 14:20:50
Linux服务器时间查看与设置
最新推荐文章于 2024-05-20 01:42:20 发布
//查看服务器时间
date
//将日期设置为2014年6月18日
[root@localhost ~]# date -s 06/18/14
//将时间设置为14点20分50秒
[root@localhost ~]# date -s 14:20:50