snippetbashTip
xclock — Display the time in analog or digital form. More information: <https://manned.org/xclock>.
Viewed 0 times
thecommandclitimedigitalxclockanalogdisplay
linux
Problem
How to use the
xclock command: Display the time in analog or digital form. More information: <https://manned.org/xclock>.Solution
xclock — Display the time in analog or digital form. More information: <https://manned.org/xclock>.Display an analog clock:
xclockDisplay a 24-hour digital clock with the hour and minute fields only:
xclock -digital -briefDisplay a digital clock using an strftime format string (see strftime(3)):
xclock -digital -strftime {{format}}Display a 24-hour digital clock with the hour, minute, and second fields that updates every second:
xclock -digital -strftime '%H:%M:%S' -update 1Display a 12-hour digital clock with the hour and minute fields only:
xclock -digital -twelve -briefCode Snippets
Display an analog clock
xclockDisplay a 24-hour digital clock with the hour and minute fields only
xclock -digital -briefDisplay a digital clock using an strftime format string (see strftime(3))
xclock -digital -strftime {{format}}Display a 24-hour digital clock with the hour, minute, and second fields that updates every second
xclock -digital -strftime '%H:%M:%S' -update 1Display a 12-hour digital clock with the hour and minute fields only
xclock -digital -twelve -briefContext
tldr-pages: linux/xclock
Revisions (0)
No revisions yet.