determining the IP address
In Kubuntu, use any of the following:
hostname -I
ifconfig -a
ip addr show
ip route get 8.8.8.8 | awk '{print $NF; exit}'
licensing
Some rights reserved: CC BY-SA 3.0. Specifically, the following content falls under this license:
- An answer on Ask Ubuntu by rsp:
ip route get 8.8.8.8 | awk '{print $NF; exit}'
If the above content is omitted, the rest is licensed no rights reserved: CC0 1.0.
prior work
- The
hostname -I
method was introduced to me by an answer on Ask Ubuntu by Sarath Somana. - The
ifconfig -a
andip addr show
methods were introduced to me by an answer on Ask Ubuntu by kamil. - The
ip route get 8.8.8.8 | awk '{print $NF; exit}'
method was introduced to me by an answer on Ask Ubuntu by rsp.