ipconfig
does not exist anymore as a command available in Ubuntu 20.04 and later I assume. The new command is just ip
. When I run the ip address
command I get the entire list of all devices and ip addresses associated. I want just the eth0
device and public ip 4 address associated.
I want just the bare ip address octets only. I want this to work on both Linux and Mac OS.