linux 自学系列:日期、日历信息显示修改

日期:

date命令,查看直接用date, 要显示格林威治时间用date -u

修改用 date -s ,如将系统时间设定成1996年6月10日的命令如下 date -s 06/10/96 

将系统时间设定成下午14点14分0秒的命令如下,

date -s 14:14:00 

日历:

cal [月] [年]

opstions:

  -y

e.g:cal -y | more 显示整年日历

 

设置中国时区:ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

自动授时:ntpdate asia.pool.ntp.org 

posted @ 2012-11-27 16:23  践道者  阅读(330)  评论(0编辑  收藏  举报