# method 1 ping
ping google.com
# method 2 curl
curl -I https://linuxhint.com/
# method 3 list adapters
ip a
# check default gateway
ip r
# method 1 ping
ping google.com
# method 2 curl
curl -I https://linuxhint.com/
# method 3 list adapters
ip a
# check default gateway
ip r