Answers for "linux get ip addres via terminal"

23

display ip address linux

#private ip
hostname -I
or
ifconfig
or
ip addr show

#public ip
curl ifconfig.me
Posted by: Guest on December-02-2020
0

IP adress terminal

# when you're on your terminal Window : 
ipconfig

# on macOS : 
ifconfig | grep "inet" | grep -v 127.0.0.1

# on Linux : 

hostname -I
Posted by: Guest on May-07-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language