how to find the current ip of system unix commands

ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

No comments:

Post a Comment