rtcwake
systemLinux
The rtcwake command is one of the most frequently used commands in Linux/Unix-like operating systems. rtcwake Enter a system sleep state until specified wakeup time
Quick Reference
Command Name:
rtcwake
Category:
system
Platform:
Linux
Basic Usage:
rtcwake [options] [arguments]
Common Use Cases
Syntax
rtcwake [options]
Options
Option | Description |
---|---|
-a, --auto |
Automatically detect the RTC device |
-d, --device=DEV |
Specify the RTC device (e.g., /dev/rtc0) |
-l, --local |
RTC uses local time instead of UTC |
-m, --mode=MODE |
Suspend mode: standby, mem, disk, freeze, off, on, no, disable, show |
-n, --dry-run |
Don't set the alarm, only show what would happen |
-s, --seconds=SEC |
Set the RTC alarm SEC seconds from now |
-t, --time=TIME |
Set the RTC alarm to absolute time (seconds since epoch) |
--date=DATE |
Set the RTC alarm to a date-time string in format: YYYY-MM-DD hh:mm:ss |
-v, --verbose |
Be verbose about what is being done |
-h, --help |
Display help message and exit |
-V, --version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the rtcwake
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo rtcwake -m mem -s 3600