Difference between revisions of "Ip address show"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
[[ip addr]] show | grep "inet " | grep -v 127.0.0.1 | [[ip addr]] show | grep "inet " | grep -v 127.0.0.1 | ||
+ | |||
+ | [[MACHINE_IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)]] | ||
== Related commands == | == Related commands == |
Revision as of 06:31, 2 February 2023
This article is a Draft. Help us to complete it.
ip address show
ip a s
ip addr show | grep "inet " | grep -v 127.0.0.1
awk '{print $4}' | cut -d/ -f1)
Related commands
hostname -I (--all-ip-addresses)
ifconfig -a
virsh domifaddr
andvirsh domiflist
See also
Advertising: