热门关键字:  ubuntu  分区  函数  linux系统进程  Fedora

当前位置 :| 主页>Linux教程>Linux命令>

date Linux and Unix 命令手册

来源: 作者: 时间:2007-11-24 Tag: 点击:

date         Linux and Unix 命令手册

本命令手册以实用,简洁为原则,对于已经消化的内容,不附加详细的注解。

磁针石

联系方式: QQ:37391319 gmail and gtalk: xurongzhong@gmail.com

参考资料

<!--[if !supportLists]-->l         <!--[endif]-->Unix 技术手册》

<!--[if !supportLists]-->l         <!--[endif]-->Solaris 8 date 命令帮助

 

常用用法

Solaris 8 帮助中的实例,分行显示日期和时间

bash-2.03# date '+DATE: %m/%d/%y%nTIME:%H:%M:%S'

DATE: 11/23/07

TIME:09:31:50

       Linux 的命令帮助没有这种实例,可见参考Solaris的更好。

 

<!--[if !supportLists]-->     <!--[endif]-->设置日期和时间, 设置为200011 16:59

bash-2.03# date 010116592000

Sat Jan  1 16:59:00 CST 2000

 

Solaris 8 帮助中的实例,设置时间

bash-2.03# date 1234.56

Sat Jan  1 12:34:56 CST 2000

 

*获取年月日

bash-2.03# date +%y-%m-%d

07-11-23

命令参考

Solaris 8 date 命令参考

 

bash-2.03# man date

Reformatting page.  Please Wait... done

 

User Commands                                             date(1)

 

NAME

     date - write the date and time

 

SYNOPSIS

     /usr/bin/date [ -u ]  [  +  format  ]

 

     /usr/bin/date [  -a  [ - ]  sss.fff  ]

 

     /usr/bin/date [ -u ]  [  [ mmdd ]  HHMM  |  mmddHHMM  [ cc ]

     yy  ]  [ .SS ]

 

     /usr/xpg4/bin/date [ -u ]  [  +  format  ]

 

     /usr/xpg4/bin/date [  -a  [ - ]  sss.fff  ]

 

     /usr/xpg4/bin/date [ -u ]  [  [ mmdd ]  HHMM  |  mmddHHMM  [

     cc ]  yy  ]  [ .SS ]

 

上一篇:没有了
下一篇:没有了
最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册