piapia123
en

Shutdown, Restart and Sleep Command Generator

Web

Everything runs locally in your browser — nothing is uploaded

Output

The same job needs three unrelated commands on three platforms, and the delay is measured differently on each: Windows counts `/t` in seconds, while Linux and macOS count `+N` in minutes. Typing 2 for two minutes gives `/t 2` — no error, just a shutdown two seconds later. This tool splits platform, action, delay, force and warning message into options, then explains every argument it emitted and states plainly how your delay was converted. The awkward cases get called out too: Windows has no built-in sleep command, and `/h` cannot be combined with `/t`, `/f` or `/c`. Every command is assembled in your browser. Nothing is sent anywhere.

Features

  • One tool for Windows, Linux and macOS
  • Five actions: shutdown, restart, sleep, hibernate, cancel
  • Delay converted per platform and stated plainly: seconds on Windows, minutes on Linux and macOS
  • Every argument explained, one by one
  • Warning messages quoted automatically (/c on Windows, a broadcast message elsewhere)
  • Options that do not exist on a platform are called out instead of silently dropped
  • Sleep on Windows and the /h-versus-/t conflict get their own notes
  • Runs entirely in your browser, with no network requests

How to use

  1. Pick a platform (Windows, Linux or macOS)
  2. Pick an action and enter the delay in minutes
  3. Tick force-close or add a warning message if you need them
  4. Copy the generated command and its argument list

FAQ

Why seconds on Windows and minutes elsewhere?
Two historical conventions. Windows measures `shutdown /t` in seconds; Linux and macOS measure `shutdown +N` in minutes. So two minutes becomes `/t 120` on Windows and `+2` on the others. Neither errors — they just differ by a factor of 60, which is why the converted value is written into the result.
Why can I not sleep a Windows machine with shutdown?
Because Windows `shutdown` only offers `/s`, `/r`, `/h`, `/a`, `/t`, `/c` and `/f` — there is no `/sleep`. The usual substitute is `rundll32.exe powrprof.dll,SetSuspendState`, with a catch: if hibernation is enabled it hibernates rather than sleeping. Run `powercfg /hibernate off` first if sleep is what you want.
Can shutdown /h take a delay?
No. Windows makes `/h` mutually exclusive with `/t`, `/f` and `/c`; combining them is rejected. So this tool drops the delay, force and message for hibernate and says why, rather than emitting a command the system refuses.
Why is there no force-close switch on Linux?
Because Linux `shutdown` has no such option — it broadcasts and shuts down cleanly by default. To skip the normal sequence you can use `systemctl poweroff --force` (`--force --reboot` to restart), but that risks data loss, so this tool does not add it for you and only mentions it in the notes.

Related tools