How can I list installed network cards using Terminal?

How to list all network cards installed in my Ubuntu using a single terminal command?

4 Answers

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.

1

You can use:

lspci

lspci : will list all PCI devices

Now try this command:

lspci | egrep -i --color 'network|ethernet' 

The command will list network cards available and installed and highlight Ethernet if found .

example output

If the cards are installed physically but not configured you can see them like this:

cat /proc/net/dev

The following command provides detailed information about the hardware:

sudo lshw -class network

This command will show you the current NetworkManager configuration:

nmcli

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like