Skip to content

Instantly share code, notes, and snippets.

@imWildCat
Created March 25, 2023 14:55
Show Gist options
  • Save imWildCat/e4a87f7330bfe955d70630fe19faaef2 to your computer and use it in GitHub Desktop.
Save imWildCat/e4a87f7330bfe955d70630fe19faaef2 to your computer and use it in GitHub Desktop.
Ubuntu 22.04: Reboot to Windows
# 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