LSPCI grep Eth to see if a variety of hardware devices are identified or exist under Linux __linux

Source: Internet
Author: User

Background: Linux Under the hardware there are a lot of how to see the NIC is what kind of, the sound card is what kind of a few USB port and brand.

[Root@emulmachine htdocs]# lspci |grep usb 00:03.0
usb controller:broadcom BCM5785 [HT1000] USB (rev. 00:03.1)
USB controller:broadcom BCM5785 [HT1000] USB (rev)
00:03.2 USB controller:broadcom BCM5785 [HT1000] USB (rev 01)

The command action: LSPCI the output as input to find the row containing the ETH. Run the results on my Fedora machine as

[Root@localhost etc]# Lspci | grep Eth

00:04.0 Ethernet Controller:silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev. 91)

LSPCI Command Explanation: This command can list the PCI device information in the machine, such as sound card, video card, Modem, network card and so on, the information of the Board integrated device can be listed, LSPCI read the Hwdata database.

| Pipe command, previous output as input after

The grep grep command sets the specified filtered string, and any rows that do not include the specified string are not displayed. This article from: Linux Tutorial Network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.