Returning just the interface name with Linux.

The network adapter name is easy to return on Linux. This simple one-liner will give this information to the user. jason@Yog-Sothoth » ~ » $ ip -o -4 route show to default | awk '{print $5}' enp0s25 Using this information to get information about a network adapter. jason@Yog-Sothoth » ~…

Read More