Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

Any Help ?

share|improve this question

2 Answers 2

You can use :

lspci command

lspci : will list all PCI devices

Now we by this command :

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

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

enter image description here

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.