The fastest way to restart without touching your mouse
You can restart your computer using only the keyboard on Windows, Mac, and Linux machines. The method depends on your operating system, but each one takes fewer than ten seconds once you know the steps. This is useful when your mouse stops working, when you're troubleshooting a frozen screen, or straightforward when your hands are full.
The keyboard shortcut works the same way every time—you don't need to memorize multiple commands or navigate through menus. Your computer will give you a confirmation window, so you won't accidentally restart without meaning to.
Key Takeaways
- On Windows, press Alt + F4 to open the shutdown menu, then use arrow keys to select Restart and press Enter.
- On Mac, press Control + Command + Power to restart when ready, or Control + Command + Eject on older keyboards.
- On Linux, press Alt + F2, type reboot, and press Enter to restart from the command prompt.
- If your keyboard shortcuts don't work, you can use the Tab key to navigate menus and Enter to select options on any system.
- Always save your work before restarting—the computer will close all open programs without asking again after you confirm.
Windows: Using Alt + F4 and the shutdown menu
On Windows 10 and Windows 11, the quickest keyboard method is Alt + F4. This closes your current window, but if you press it when no specific program is active (or after closing all programs), it opens the Windows shutdown menu.
Press Alt + F4. A small window will appear with three options: Sleep, Shut down, and Restart. Use the Down arrow key to highlight Restart, then press Enter. Your computer will restart when ready after you confirm.
If Alt + F4 closes a program instead of opening the shutdown menu, click on the desktop first to make sure no process window is active, then try again. You can also use Windows key + X to open the power menu, then press U twice—once for the shutdown submenu and once more to select Restart.
Mac: Control + Command + Power button
On Mac computers, Control + Command + Power restarts your machine when ready without showing a confirmation window. This is the fastest method, but it means you won't get a second chance to cancel if you pressed the keys by accident.
If you want a confirmation window first, press Control + Command + Eject instead (or Control + Command + Media Eject on newer keyboards). A dialog box will appear asking whether you want to restart, sleep, or shut down. Use the arrow keys to select Restart and press Enter.
On very old Mac keyboards without a Power button or Eject key, you can hold Control + Command and press the Power button on your keyboard if it has one. If your Mac has a Touch ID button, that button also functions as the power button for these shortcuts.
Linux: Alt + F2 and the reboot command
On Linux systems using a graphical desktop (like Ubuntu, Fedora, or Linux Mint), press Alt + F2 to open the Run Command dialog. A text box will appear where you can type commands.
Type reboot and press Enter. Your system will restart after a few seconds. If you want to shut down instead of restart, type shutdown -h now and press Enter.
Some Linux desktops may require you to type the full path /sbin/reboot instead of just reboot. If the Alt + F2 method doesn't work on your system, you can also open a terminal window (usually Ctrl + Alt + T) and type sudo reboot, then press Enter and type your password if prompted.
Using Tab and Enter when shortcuts don't work
If the keyboard shortcuts above don't respond on your computer, you can navigate menus manually using the Tab key and Enter. This method is slower but works on any system when shortcuts are disabled or not available.
On Windows, press Tab repeatedly to move between menu options (like Restart, Shut down, and Sleep), and press Enter when Restart is highlighted. On Mac, use Tab to move between buttons in the restart dialog and press Enter to select. On Linux, Tab moves between text fields and buttons in the Run Command dialog.
This approach also works if you open the shutdown menu through the Start menu (Windows) or Apple menu (Mac) using only the keyboard. Press the Windows key or Command key to open the menu, then use arrow keys to navigate to the power or shutdown option.
What happens during a keyboard restart
When you restart using the keyboard, your computer closes all open programs and unsaved files without asking again after you confirm the restart. This is different from putting your computer to sleep—a restart completely powers down and boots back up, which clears temporary memory and can fix many software problems.
The restart process typically takes 30 seconds to two minutes depending on your computer's age and how many programs were running. During this time, your screen will go black, you may see a loading screen or logo, and then your login screen will appear. Do not press any keys or move the mouse during this process—let the restart complete on its own.
If your computer seems stuck during restart (the screen stays black for more than three minutes), you can force a shutdown by holding the Power button for ten seconds, then press the Power button once to turn it back on. However, this should only be done if the normal restart process appears frozen.
Common mistakes and how to avoid them
Forgetting to save your work first. Once you confirm a restart, all open documents close when ready. Before you use any restart shortcut, save everything you're working on. If you accidentally started a restart, you usually have about ten seconds to press Escape or click Cancel to stop it.
Pressing Alt + F4 multiple times. On Windows, if Alt + F4 closes a program instead of opening the shutdown menu, pressing it again will close another program. Click on the desktop or an empty area first to make sure no window is active, then press Alt + F4 once.
Using Control + Command + Power on Mac without meaning to. This shortcut restarts when ready without a confirmation window. If you want a chance to cancel, use Control + Command + Eject instead, which shows a dialog box first.
Typing the wrong command on Linux. Double-check that you typed reboot correctly before pressing Enter. If you type something unrecognized, the system will show an error message but won't restart—you can try again.
Frequently Asked Questions
What's the difference between restart and shutdown?
A shutdown turns your computer completely off. A restart turns it off and then when ready turns it back on. Restart clears temporary memory and can fix software problems, while shutdown saves power. If you're troubleshooting a frozen or slow computer, restart is usually the better choice.
Can I cancel a restart after I've started it?
Yes, but only for a few seconds. On Windows, the shutdown menu stays open for about ten seconds—press Escape or click Cancel before the timer runs out. On Mac with Control + Command + Eject, you have a few seconds to click Cancel in the dialog. If you used Control + Command + Power on Mac, the restart cannot be stopped.
Why isn't Alt + F4 opening the shutdown menu?
Alt + F4 closes the active window first. If a program is open, it will close that program instead of the shutdown menu. Click on the desktop or an empty area to deselect any open window, then try Alt + F4 again. Alternatively, use Windows key + X and press U twice.
Will restarting fix my frozen computer?
Often yes. A restart clears temporary memory and stops frozen programs. However, if your keyboard shortcuts aren't working because the system is completely frozen, you may need to force a shutdown by holding the Power button for ten seconds instead.
Do I need to close programs before restarting?
No—the restart process closes all programs automatically. However, you should save your work in each program first, because unsaved files will be lost when the programs close.