1 <span class="co0"># let's edit grub configuration file</span>
2 $ <span class="kw2">sudo</span> <span class="kw2">vim</span> <span class="sy0">/</span>etc<span class="sy0">/</span>default<span class="sy0">/</span>grub
3 <span class="co0"># sets the nth list item to be the default choice</span>
4 <span class="re2">GRUB_DEFAULT</span>=n
5 <span class="co0"># sets n second of wait before the default choice starts</span>
6 <span class="re2">GRUB_TIMEOUT</span>=n
7 <span class="co0"># updates the grub</span>
8 <span class="kw2">sudo</span> update-grub