How to regenerate the GRUB config file on Ubuntu using a simple command in the terminal.

How to use a simple command to regenerate the GRUB config file on Linux.