How to find my own IP address in CentOS

Two commands come to the rescue: ip and ifconfig. Either does the trick:

Slightly more parameters with ip, and slightly less output:

The output on the second line is the IP address (in our example 87.106.181.234).

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

Add your voice!