1.时间命令:date 向date命令传递参数适用‘+‘(加号),在传递的参数中 %Y表示年 %m表示月 %d表示天 %H表示小时(表示的时间是00-23) %M表示分钟 %S表示秒 %s(表示unix时间戳的秒数) 1.1例如 date +%Y-%m-%d 这个在我的机器上面的结果是:  date命令的输出结果是对当前时间的以传递的参数进行格式化 1.2例如date +'%Y-%m-%d %H:%M:%S'  1.3获取当前时间的unix时间戳 date +%s  1.4使用date命令获取一个特定时间的unix时间戳  上面演示的是获取2014年10月8号的unix时间戳 |