Linux: Afficher son @ip

Publié le par Yvon Mindou

Commande pour afficher l'adresse ip de sa machine:
ifconfig -a | egrep 'inet ' | grep -v 127.0.0.1 | sed 's/^.*inet addr:\([^ ]*\) .*/\1/g' | tr '\n' ';' | sed 's/;/ ; /g' | sed 's/ ; $/@/g' | tr '@' '\n'


Pour être informé des derniers articles, inscrivez vous :
Commenter cet article