← 返回命令列表

Linux command

xclock 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

xclock

Example

xclock -digital -brief

Example

xclock -digital -strftime [format]

Example

xclock -digital -strftime '%H:%M:%S' -update 1

12-hour

xclock -digital -twelve -brief

说明

xclock displays the time in analog or digital form in an X11 window. It can show various time formats and update at configurable intervals. The analog display shows a traditional clock face. Digital mode supports strftime formatting for custom displays.

参数

-digital
Display digital clock instead of analog
-brief
Show only hours and minutes
-twelve
Use 12-hour format
-strftime _FORMAT_
Custom time format (see strftime)
-update _SECONDS_
Update interval

FAQ

What is the xclock command used for?

xclock displays the time in analog or digital form in an X11 window. It can show various time formats and update at configurable intervals. The analog display shows a traditional clock face. Digital mode supports strftime formatting for custom displays.

How do I run a basic xclock example?

Run `xclock` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -digital do in xclock?

Display digital clock instead of analog