How to edit GRUB Default Operating System? [duplicate]

Solution 1:

use grub-set-default

$ sudo grub-set-default ENTRY

ENTRY is a number or a menu item title

or edit /boot/grub/grub.cfg

sudo chmod +w /boot/grub/grub.cfg
sudo vi /boot/grub/grub.cfg 
   change "0" in line: set default="0" to your choice
sudo chmod -w /boot/grub/grub.cfg

Solution 2:

How do I set Windows to boot as the default in the boot loader?

This question was discussed previously and a detailed answer could be found here...

How do I set Windows to boot as the default in the boot loader?