Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux get host ip local

hostname -I | awk '{print $1}'

ifconfig -a.
ip addr (ip a)
hostname -I | awk '{print $1}'
ip route get 1.2. ...
(Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen.
nmcli -p device show.
 
PREVIOUS NEXT
Tagged: #linux #host #ip #local
ADD COMMENT
Topic
Name
6+9 =