Created
March 25, 2023 14:55
-
-
Save imWildCat/e4a87f7330bfe955d70630fe19faaef2 to your computer and use it in GitHub Desktop.
Ubuntu 22.04: Reboot to Windows
This file contains 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
# https://unix.stackexchange.com/a/112284 | |
reboot_to_windows () | |
{ | |
windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) | |
sudo grub-reboot "$windows_title" && sudo reboot | |
} | |
alias reboot-to-windows='reboot_to_windows' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment