This command will show a list of all the IP v4 addresses available on a linux server
ip addr | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{ print $2; }' | awk -F'/' '{ print $1; }' |
my own pastebin
This command will show a list of all the IP v4 addresses available on a linux server
ip addr | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{ print $2; }' | awk -F'/' '{ print $1; }' |