I am having Windows and Ubuntu installed side by side. So every time when I boot (when the GRUB menu appears) I have to press down key to select a specific OS.
I want to edit the code of GRUB so that it remembers what I boot last. Like if I boot Ubuntu last time, then by default selected option will be Ubuntu in menu, similarly for windows.