When I use ifconfig
command, it will show the details of all active devices.
I want the interface name only, and want to check whether the interface is running or not.
ifconfig | grep interface-name
This will give all detail about the interface but I want to print only interface name.