Hacker News new | ask | show | jobs
by mschuster91 3835 days ago
On Linux, run ifconfig as root. The problem is that there's no naming convention for NIC names. Some systems use ethX for both wired and wireless systems, some ethX/wlanX, and some use wlx-(macaddress) unique name.
2 comments

Why would you need to to root to see the list of network cards? ifconfig as non-root, or just ip addr, works fine.

Note that newer debian versions seem to have moved ifconfig to sbin so it's not in a normal user's $PATH

Just heads up ifconfig is considered deprecated and ip addr show is the correct command on many modern distros.