How to find out the connected interface using linux command Rumi, October 26, 2020 Method 1 To find out the connected state of a network cable in Linux, just run: $ cat /sys/class/net/enp5s0/carrier Sample output: 1 If you got output as “1” (Number one), It means that the network cable is connected with the network card. Also, you can do this with the following command too:… Continue Reading