Show all the IP addresses available on a linux server

Posted by EvolutionCrazy on Apr 15, 2014 in bash |

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; }'

Copyright © 2018 evcz.tk All rights reserved. Theme by Laptop Geek.