How to disable IPv6 address on Ubuntu 20.04 LTS Focal Fossa - LinuxConfig.org

IPv6, Internet Protocol version 6 is the most recent version of the Internet Protocol (IP). It is a communications protocol which is used for identification and location for computers on networks. Its purpose it to route traffic across the Internet. This article will show you how to temporarily or permanently disable IPv6 on Ubuntu 20.04 LTS Focal Fossa.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-disable-ipv6-address-on-ubuntu-20-04-lts-focal-fossa

so for curiosity, why would you not just do this config vi /etc/sysctl.conf instead of plugging it into grub? it seems like that would be the ‘more right’ place/way to configure it.