I know that I can find which network interface is currently being used by parsing the output of:
But how can I get this information as a non-root user? Is there a way I can build such a
whose ouput would be
eth0 depending on the device used.. or even
wlp2s0 on exotic systems, with no admin rights?