ubuntu view ip address code example
Example 1: how to get ip address in ubuntu
Open your command prompt and type following command shown below and press enter
ifconfig -a
Example 2: ip info on ubuntu
$ systemd-resolve --status | grep Current
Open your command prompt and type following command shown below and press enter
ifconfig -a
$ systemd-resolve --status | grep Current