Q:

display ip address linux

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

#public ip
curl ifconfig.me
1

New to Communities?

Join the community