Difference between revisions of "Ip address show"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} == Related commands == * <code>hostname -I (--all-ip-addresses)</code> == See also == * {{ip}}")
Tags: Mobile web edit, Mobile edit
 
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
 +
{{lowercase}}
  
 +
* <code>[[ip address]] show</code>
 +
* <code>[[ip a s]]</code>
  
 +
* <code>[[ip addr]] show | grep "inet " | grep -v 127.0.0.1</code>
 +
 +
 +
* <code>[[MACHINE_IP]]=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)</code>
  
 
== Related commands ==
 
== Related commands ==
* <code>hostname -I (--all-ip-addresses)</code>
+
* <code>[[hostname -I]] (--all-ip-addresses)</code>
 
+
* <code>[[ifconfig -a]]</code>
 +
* <code>[[virsh domifaddr]]</code> and <code>[[virsh domiflist]]</code>
 +
* <code>[[netstat -an]]</code>
 +
* macOS: <code>[[ipconfig getifaddr en0]]</code>
  
 
== See also ==
 
== See also ==
 
* {{ip}}
 
* {{ip}}
 +
 +
 +
[[Category:Networking]]

Latest revision as of 10:23, 20 September 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[edit]

See also[edit]

Advertising: