Raspberry Pi

How to Know Plugged USB Device Name in Raspberry Pi

There can be multiple reasons for why a person wants to know the plugged USB device’s name, for instance, if you are remotely accessing your Raspberry Pi device and want to find out whether your desired device is connected to the USB port of Raspberry Pi or not. Also, users can be interested in knowing the name of a plugged USB device so that they can store the data in the desired device. In such a situation, if you need shortcut commands to quickly display your plugged USB device name then you are at the right place. This article presents different ways to find the name of the plugged USB devices.

How to Know Plugged USB Device Name in Raspberry Pi?

You can find name of plugged USB devices in Raspberry Pi from two commands, which are:

Method 1: Know Plugged USB Device Name Through lsusb

The best and easiest command to display all the plugged USB devices’ names on Raspberry Pi can be done through the following lsusb command:

$ lsusb

The output of the above command will display the Bus number, device ID and device name. So if you want to find the USB-connected devices on your Raspberry, simply use this command:

Method 2: Know Plugged USB Device Name Through usb-devices

You can also use the following command to find the name of plugged USB devices in your Raspberry Pi device:

$ usb-devices

The best thing about this command is that it displays a more detail of a USB device but the drawback is that it does not display all the connected devices. So, there is a chance of missing any device. But this command is handy to use when you are only concerned about the details of the USB-plugged device:

Conclusion

To know the name of the plugged USB device in Raspberry Pi, the best command is lsusb. But if more detail of a plugged USB device is required then usb-devices command will also work great for that. It’s up to the user choice which command they want to execute to find the USB device name connected to the Raspberry Pi device.

About the author

Zahra Zamir

An Electronics graduate who loves to learn and share the knowledge, my passion for my field has helped me grasp complex electronics concepts and now I am here to share them with others.