LSPCI and LSUSB



The commands listed in this post are more for Linux than Unix. To find out information about the hardware of your computer, you can run an lspci command. Lspci will output the specifications of your hardware in a list style arrangement as shown below:

If you want to get more specific in your lspci output (e.g. wanting just to display a certain brand), you can always do lspci | grep -i "Productname" which will only return results that includes the string from your grep command. For example, if I wanted to find all of the hardware made by Broadcom, I would do lspci | grep -i "broadcom" and the results would return only hardware that mentions Broadcom.

Although, this will only display hardware that is inside your computer, it will not display any hardware that is attached by USB. This is where the command lsusb comes in. Lsusb will list all of the USB ports you have in your computer and display any hardware specifications that are plugged-in to them as shown in the example below:

Leave a Reply