Suspend to RAM and wakeup after 10 seconds

rtcwake

  • Enter a system sleep state until specified wakeup time relative to your BIOS clock.
    More information: <https://manned.org/rtcwake>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo rtcwake -m mem -s {{10}}

click the source code to copy install rtcwake on any operating system with command-not-found.com