Here is how to display the default gateway on Ubuntu from the command line.
Ubuntu 20.04 + (without net tools)
ip route show
Ubuntu 18.04 - (with net-tools)
route

Here is how to display the default gateway on Ubuntu from the command line.
ip route show
route