How to list all network cards installed in my Ubuntu using a single terminal command?
Asked
Active
Viewed 1.4e+01k times
4 Answers
47
while the above works, there are other options with less typing.
ip link show
or my favorite, netstat
netstat -i
you can also use ifconfig and iwconfig for additional information or information about a specific device
ifconfig eth0
iwconfig wlp1s0
sort of depends on the sort of information you wish to display.

Panther
- 102,067
4
If the cards are installed physically but not configured you can see them like this:
cat /proc/net/dev

user3021729
- 141
- 1
- 5
3
The following command provides detailed information about the hardware:
sudo lshw -class network
This command will show you the current NetworkManager configuration:
nmcli

Kevin Bowen
- 19,615
- 55
- 79
- 83

eadmaster
- 299
ip link
yields the same result as withshow
. – Serge Stroobandt Sep 06 '17 at 22:54