determining the IP address
In Kubuntu, use any of the following:
hostname -Iifconfig -aip addr showip 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 -Imethod was introduced to me by an answer on Ask Ubuntu by Sarath Somana. - The
ifconfig -aandip addr showmethods 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.