how to show localhost ip address in ubuntu code example Example: ip info on ubuntu $ systemd-resolve --status | grep Current