how to check ip in ubuntu code example
Example 1: ip address ubuntu
ip address show
Example 2: how to get ip address in ubuntu
Open your command prompt and type following command shown below and press enter
ifconfig -a
Example 3: ip info on ubuntu
$ systemd-resolve --status | grep Current
Example 4: ubuntu 18.04 get public ip address
dig +short myip.opendns.com @resolver1.opendns.com