linux terminal command to find ip address code example
Example 1: get public ip linux
curl ifconfig.me
Example 2: display ip address linux
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Example 3: linux check ip address command
ifconfig -a