how to show ip address in ibunutu terminal code example
Example 1: ip address ubuntu
ip address show
Example 2: display ip address linux
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Example 3: how to find public ip address in linux
$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com
120.88.41.175
Example 4: ip info on ubuntu
$ systemd-resolve --status | grep Current