how to edit grub in terminal ubuntu 18.04

Sorry for this I have seen it before but today i can not find it.

I simply want to set default=last OS selected. I can't get grub customizer set it.

3

1 Answer

sudo nano /etc/default/grub

Add

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true 

After that run

sudo update-grub

Boot your desired OS.

Note that if you have a dualboot with another Linux OS, this has to be done in the system with leading GRUB2.

More info are available in the

info -f grub -n 'Simple configuration'

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like