阅读背景:

Liux初学(CnetOS Linux7)之线上求助man page与info page

来源:互联网 

1.指令--help 

<span>[xiaohui@localhost ~]$ date --help
Usage: date [OPTION]... [+FORMAT]                           # 这里有根本语法
  or:  date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]  # 这是设定时光的语法
Display the current time in the given FORMAT, or set the system date.
# 底下是主要的选项解释
Mandatory arguments to long options are mandatory for short options too.
  -d, --date=STRING         display time described by STRING, not "now"
  -f, --file=DATEFILE       like --date once for each line of DATEFILE
<span>....(中间省略)....</span>
  -u, --utc, --universal    print or set Coordinated Universal Time (UTC)
      --help     显示此求助解释并分开
      --version  显示版本消息并分开
# 底下则是主要的格局 (FORMAT) 的主要项目
FORMAT controls the output.  Interpreted sequences are:

  %%   a literal %
  %a   locale"s abbreviated weekday name (e.g., Sun)
  %A   locale"s full weekday name (e.g., Sunday)
<span>....(中间省略)....</span>
# 底下是几个主要的典范 (Example)
Examples:
Convert seconds since the epoch (1970-01-01 UTC) to a date
  $ date --date="@2147483647"
<span>....(底下省略)....</span></span><span>[xiaohui@localhost ~]$ date --h




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: