linux的命令,怎么能知道这个命令的默认选项是什么?

flamingheart 2006-09-15 02:54:42
比如date命令的默认选项是date -u
在man中也查不到默认选项啊?
...全文
174 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Wangckyo 2006-09-20
  • 打赏
  • 举报
回复
应该是系统默认alias了一些命令,比如rm。
输入alias看一下,会显示所有alias过的命令。
不行的话man一下,看看是不是要什么参数。
flamingheart 2006-09-19
  • 打赏
  • 举报
回复
geopower 2006-09-15
  • 打赏
  • 举报
回复
用法: date [OPTION]... [+FORMAT]
或: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
Display the current time in the given FORMAT, or set the system date.

-d, --date=STRING display time described by STRING, not `now'
-f, --file=DATEFILE like --date once for each line of DATEFILE
-I, --iso-8601[=TIMESPEC] output an ISO-8601 compliant date/time string.
TIMESPEC=`date' (or missing) for date only,
`hours', `minutes', or `seconds' for date and
time to the indicated precision.
-r, --reference=FILE display the last modification time of FILE
-R, --rfc-822 output RFC-822 compliant date string
-s, --set=STRING set time described by STRING
-u, --utc, --universal print or set Coordinated Universal Time
--help display this help and exit
--version output version information and exit

-u 是格林维治时间

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧