ubuntu 20.04 check ip address command line code example Example: ip info on ubuntu $ systemd-resolve --status | grep Current