4

I have been exploring this website for my queries and many times I find stuff mentioned as

update-grub2

and

update-grub

Surprisingly, many of the things to be updated for grub2, I update in grub and it works. Then what is the difference between them (in Ubuntu 18.04)?

Eliah Kagan
  • 119,640
Luce
  • 305

1 Answers1

5

They are the same:

$ which update-grub
/usr/sbin/update-grub

$ which update-grub2
/usr/sbin/update-grub2

$ ls -la /usr/sbin/update-grub*
-rwxr-xr-x 1 root root  64 veebr  6 19:20 /usr/sbin/update-grub
lrwxrwxrwx 1 root root  11 veebr  6 19:37 /usr/sbin/update-grub2 -> update-grub
-rwxr-xr-x 1 root root 301 märts 27  2015 /usr/sbin/update-grub-gfxpayload

grub is as legacy name (compatibility sake), grub2 is already about 10 years main bootloader in Ubuntu

wk.
  • 480