linux see network usage code example
Example 1: network device ubuntu
ls /sys/class/net
Example 2: show saved network connections linux
ls /etc/NetworkManager/system-connections/
ls /sys/class/net
ls /etc/NetworkManager/system-connections/