Created
June 11, 2025 13:41
-
-
Save YuanLiou/83723dcc8582a180eac5fd4a7b7c5669 to your computer and use it in GitHub Desktop.
Reboot to Windows from Linux in UEFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo efibootmgr -n $(echo $(efibootmgr) | grep -Po "(?<=Boot)\S{4}(?=( |\* )Windows)") && reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment