Difference between revisions of "Ip address show"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* <code>[[ip a s]]</code>
 
* <code>[[ip a s]]</code>
  
[[ip addr]] show | grep "inet " | grep -v 127.0.0.1
+
* <code>[[ip addr]] show | grep "inet " | grep -v 127.0.0.1</code>
  
  

Revision as of 09:14, 3 February 2023

This article is a Draft. Help us to complete it.

  • 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

See also

Advertising: