A shutdown clock is a way to end something on purpose. For a meeting, a class, a study block, or a shared screen, that ending should be a time everyone can see. Open the online timer and set the length of the activity. The countdown stays on the screen. It does not close your files, and it does not power the computer off.
An operating-system command is a different tool. It changes the state of the machine. Use one only after the work is saved, other people are finished with the computer, and powering off is what you want. The sections below keep those jobs separate, then give the commands and settings the vendor pages still describe.
When not to power the computer off
Skip a scheduled power-off when any of these are true:
- A document, export, or message is still unsaved.
- Another person is using the computer, or expects it to stay on.
- A download, update, backup, or copy has to finish first.
- You only need a reminder that the activity is over.
A visible countdown is the safer shutdown clock for a presentation or a study block. You stop the activity. The applications stay open.
Pick the kind of ending you need
People use “shutdown clock” for three different endings.
A countdown shows the time left. The online timer does that. A 30 minute review can open on the 30 minute timer, and a one minute start on the 1 minute timer. Both wait until you press Start.
A system command powers a computer off after a delay or at a clock time. Windows, macOS, and Linux each document their own command. Closing the timer tab does not cancel a command you already gave the operating system.
An iPhone limit is a third thing. Screen Time can restrict apps. The Clock app can stop audio or video when a timer ends. Apple’s guides do not describe either one as powering the phone off.
Save your work before any system command. A shutdown can close applications and drop unsaved changes.
Put a visible countdown on the screen
Use the timer when the room, or you, needs an endpoint and the computer should keep running.
- Open the online timer. Preset pages for 1, 5, 10, 15, and 30 minutes open with that length filled in. The main timer also has minute buttons, from 1 minute through 60, plus hour, minute, and second fields.
- Add a label if the screen is shared. The label stays next to the remaining time and does not change the length.
- Press Start when the activity begins. The page waits until then.
- Leave the tab in view. Fullscreen centers the remaining time. Escape or Exit leaves it.
- Stop the activity at zero. Pause holds the remaining time. Reset returns to the duration. Space starts or pauses, R resets, and F fills the screen.
Preview sound before you rely on it. The choices are Chime, Bell, Soft, and No sound. The sound plays only while this tab stays open on an awake device. The timer has no control that turns the computer off.
On the main timer, a running countdown stores its deadline, so a refresh shows the time left. A preset page returns to its preset on refresh and does not replace a countdown stored on the main timer.
A student can keep a 30 minute review on a second monitor and close the books at zero. The files stay open because the student stops them. If the room needs the time of day, use the fullscreen clock. Counting up is covered in stopwatch vs timer.
Schedule a shutdown on Windows
Microsoft documents shutdown with /s to shut the computer down and /t to set the timeout in seconds. The valid range is 0 to 315360000 seconds. The default timeout is 30 seconds. If the timeout is greater than 0, /f is implied, and /f forces running applications to close without warning. Microsoft’s caution is that this can lose unsaved data.
Save your work, confirm that nobody else needs the computer, then run the delay you need:
shutdown /s /t 1800
1800 seconds is 30 minutes. Because the timeout is greater than 0, Windows treats the command as a forced close of running apps.
To cancel during the timeout, open a new command prompt and run shutdown /a. Microsoft says /a aborts a pending shutdown and that it has to be its own command during the timeout. Closing the first window does not replace /a. You also need the “Shut down the system” user right. The syntax is in Microsoft’s shutdown documentation.
Schedule a shutdown on a Mac
Apple documents two Terminal tools. They are not interchangeable.
For a one-time halt after a number of minutes, the shutdown manual on the Mac uses -h to halt and +number for that many minutes. Apple’s Terminal guide uses sudo shutdown for a restart and points to that manual. A 30 minute halt is:
sudo shutdown -h +30
+30 is 30 minutes, not 30 seconds. The manual says a scheduled shutdown can be canceled by killing the shutdown process, and that a SIGTERM is enough. sudo killall shutdown sends that signal to the process named shutdown. macOS shutdown does not use the Linux -c flag. Run man shutdown on the Mac for the page that matches that system. Apple’s restart walkthrough is Restart computers using Terminal.
For a repeating schedule, Schedule your Mac to turn on or off in Terminal uses pmset. That page shows pmset -g sched, sudo pmset repeat wake M 8:00:00 for a Monday 8:00 a.m. wake, and sudo pmset repeat cancel. The only concrete repeat example there is a wake, not a shutdown, so read the pmset manual before you add a shutdown line. The Mac must be awake and you must be logged in, or a scheduled shutdown will not happen. With FileVault on, you log in at every startup. Unsaved documents might keep the Mac from sleeping or shutting down on schedule.
A visible countdown is the better fit when you are still at the Mac and only the activity should end.
Use the Linux shutdown command
The systemd shutdown manual describes a time as +m, minutes from now, or as hh:mm on a 24-hour clock. -h powers the machine off. Powering off is also the default if you leave the action off. If you give no time, +1 is implied, so a bare shutdown means one minute.
A halt in 30 minutes is:
shutdown -h +30
A clock time uses the other form, such as shutdown -h 22:30. If that clock time has already passed today, the manual says the shutdown runs immediately. Logged-in users are warned. Five minutes before the machine goes down, /run/nologin is created so further logins are refused. The command has to be allowed to power the machine off. If it is refused, use the account your distribution documents for system shutdown.
Cancel a pending shutdown that is not immediate with shutdown -c. The manual says -c cancels a shutdown whose time was not now or +0. Closing the terminal is not the cancel command. Options are in the Linux shutdown(8) manual. That page also notes that older shutdown commands could enter single-user mode instead of powering off.
Limit an iPhone screen without powering it off
These controls do not shut the phone down. Use the online timer on another screen when the activity needs a visible end.
Apple’s guide Set timers in Clock on iPhone includes Stop Playing. It stops audio or video when the timer ends. It is not a power command. Open Clock, tap Timers, set a duration, tap When Timer Ends, tap Stop Playing at the bottom of the sound list, then tap Set and Start. The same guide says the timer keeps running if you open another app or if the iPhone sleeps. Choose a sound instead of Stop Playing when you need to hear the end.
Screen Time is separate, and the menus depend on the iOS version.
On iOS 26, Set schedules with Screen Time uses App Limits and Downtime. For a daily limit: Settings, Screen Time, App Limits, Add Limit, then choose categories or apps, tap Next, and set the time. Several selections share that one limit. A limit can be ignored once it is reached unless you turn on the blocking control in that guide. Downtime starts at Settings, Screen Time, App & Website Activity, then Downtime. It is a schedule, not a power-off.
On iOS 27 and later, Set Screen Time Schedules and Time Allowances uses Time Allowances and a Screen Time Schedule. Apple says these need iOS 27 or later. The path is Settings, Screen Time, then Time Allowances or Screen Time Schedule. The phone stays on.
If the menus on your phone match neither guide, follow the Apple page for the version you are running. Do not guess a path from an older screenshot.
Check the ending before you leave it
Save documents, then name the action you armed. A Clockbeam countdown displays time. Screen Time restricts apps or times of day. Stop Playing stops playback. A shutdown command powers the computer off.
Keep the cancel within reach. Windows uses shutdown /a during the timeout. Linux uses shutdown -c for a pending shutdown that is not immediate. A Mac shutdown is canceled by ending that process. A repeating pmset schedule is canceled with sudo pmset repeat cancel. Apple’s guide says a sleeping or logged-out Mac will not perform a scheduled shutdown.
Closing the browser tab cancels nothing the operating system has already scheduled.
Use the online timer when the shutdown clock is an activity. Use a system command only when the computer itself should power off, and only after the work is saved. The complete guide to free online clocks and time tools maps the timer, the clock, and the other pages.

