SyntaxFix
Write A Post
Hire A Developer
Questions
cat /sys/class/net/ethX is by far the easiest method.
cat /sys/class/net/ethX
The interface has to be up though, else you will get an invalid argument error.
So first:
ifconfig ethX up
Then: