The fastest keyboard restart for Windows, Mac, and Linux
You can restart your computer without touching the mouse. On Windows, press Alt + F4 to close all open windows, then use the arrow keys to select "Restart" from the shutdown menu. On Mac, hold Control + Command + Power to force a restart, or use Control + Command + Eject on older models. On Linux, the method depends on your desktop environment, but Alt + F2 followed by typing a restart command works on most systems.
The keyboard method is useful when your trackpad or mouse stops responding, or when you need to restart quickly without hunting for the power button. Each operating system has its own sequence, and knowing the right one saves time and frustration.
Key Takeaways
- Windows users can press Alt + F4 to open the shutdown menu, then use arrow keys to select Restart.
- Mac users should hold Control + Command + Power together to restart when ready without saving.
- Linux restart commands vary by desktop environment, but Alt + F2 opens a run dialog on most systems.
- A keyboard restart is faster than using the mouse when your pointing device fails or becomes unresponsive.
- Some systems require you to confirm the restart after selecting it, which you can do by pressing Enter.
Windows restart using Alt + F4
Press Alt + F4 to close the active window. If you have multiple programs open, repeat this step until you reach the desktop or the Windows login screen. Once you see the shutdown menu, use the Down arrow key to highlight "Restart" and press Enter.
If Alt + F4 does not open a shutdown menu, try pressing Alt + F4 again from the desktop itself. Windows will display a dialog with three options: Switch user, Sign out, or Shut down. Use the Down arrow key to move between options until Restart appears, then press Enter to confirm.
On some Windows versions, you may see only "Shut down" in the menu. If that happens, press the Shift key while selecting Shut down, which converts it to a restart command on certain systems. Alternatively, use the Windows key + X method described below.
Windows restart using Windows key + X
Press the Windows key + X together to open the power menu. This menu appears in the lower left corner and shows options like "Shut down or sign out." Use the Down arrow key to navigate to "Shut down or sign out," then press Enter.
A submenu will appear with three choices: Sign out, Sleep, or Shut down. Press the Right arrow key to expand the Shut down option, which reveals a Restart choice. Highlight Restart with the Down arrow key and press Enter to begin the restart.
This method works on Windows 10 and Windows 11. The menu appears when ready and does not require you to close open programs first, though unsaved work will be lost if you do not save before restarting.
Mac restart using Control + Command + Power
Hold Control + Command + Power at the same time on your Mac keyboard. This forces an when ready restart without saving open documents. The screen will go black, and your Mac will restart automatically within a few seconds.
If you have an older Mac with an Eject key instead of Power, use Control + Command + Eject instead. This key combination works the same way and forces a restart. On MacBook models with Touch ID, the Power button is in the top right corner of the keyboard.
This method bypasses the normal shutdown process, so use it only when your Mac is frozen or unresponsive. If your Mac is working normally, the gentler method is to press Control + Command + Q, which logs you out, then restart from the login screen using the Apple menu.
Mac restart from the login screen
If you are already at the Mac login screen or want a safer restart, press Control + Command + Q to log out. Once you see the login window, press Control + Command + Power to restart. This gives your system time to close programs properly before restarting.
Alternatively, after logging out, you can navigate to the Apple menu using the keyboard. Press Control + F2 to focus on the menu bar, then use arrow keys to find the Apple menu and select Restart from the dropdown. This method is slower but works if the Control + Command + Power combination does not respond.
Linux restart using Alt + F2
Press Alt + F2 to open the Run Command dialog on most Linux desktop environments like GNOME or KDE. Type reboot and press Enter. Your system will restart when ready.
If Alt + F2 does not work, your Linux system may use a different desktop environment. Try pressing Alt + F1 to open the process menu, then search for "Restart" or "Shutdown" using the keyboard. Navigate with arrow keys and press Enter to select the restart option.
On some Linux systems, you can also use Ctrl + Alt + Delete to open a system menu with restart and shutdown options. The exact behavior depends on your distribution and desktop environment configuration.
What to do if the keyboard restart does not work
If none of these methods work, your computer may be completely frozen. In that case, hold down the physical power button on your computer for 10 to 15 seconds until the screen goes black and the system shuts down. Wait 30 seconds, then press the power button once to turn it back on. This is a hard restart and should be used only when the keyboard methods fail.
After a hard restart, your system may run a disk check or recovery process on the next boot. This is normal and helps prevent data loss from the forced shutdown. Let the process complete without interruption.
If your keyboard is not responding at all, the problem may be a hardware issue or a driver failure. Try restarting with a different keyboard if you have one available, or use the mouse to restart if the keyboard is the only input device failing.
Frequently Asked Questions
Will restarting with the keyboard save my open files?
No. Using keyboard shortcuts to restart does not save your work automatically. Save all open documents before restarting, or use the gentler logout method on Mac, which gives programs a chance to prompt you to save before closing.
Does Alt + F4 work on all Windows computers?
Alt + F4 works on most Windows systems, but some corporate or locked-down computers may disable it. If it does not work, try Windows key + X instead, which is harder to disable and works on nearly all Windows 10 and 11 machines.
What is the difference between restart and shutdown?
Restart turns your computer off and back on when ready. Shutdown turns it off completely and leaves it off until you press the power button. Restart clears temporary memory and reloads the operating system, which often fixes freezing or slow performance.
Can I restart a Mac without losing unsaved work?
Control + Command + Power forces a restart and does not save files. To save your work first, use Control + Command + Q to log out, then restart from the login screen. This gives programs time to prompt you to save before closing.
Why would I need to restart using only the keyboard?
Your mouse or trackpad may stop responding, or you may be using a remote connection where the mouse is not available. Keyboard shortcuts also restart faster than navigating menus with a mouse, which is useful when your system is sluggish or unresponsive.