ip -o -4 addr list eth0

From wikieduonline
Jump to navigation Jump to search

ip -o -4 addr list eth0


MACHINE_IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)


See also[edit]

Advertising: