📌  相关文章
📜  list usb ubuntu - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:44:01.024000             🧑  作者: Mango

List USB Devices on Ubuntu using Shell/Bash

When working with Ubuntu or any Linux distribution, it's important to have a way to list and identify connected USB devices. In this guide, we'll explore how to use the command line to list USB devices connected to Ubuntu.

Prerequisites

Before proceeding with the guide, ensure that you have the following:

  • A functioning installation of Ubuntu or any other Linux distribution
  • Basic knowledge of the Terminal and command line interface
  • Access to the command line
Steps to List USB Devices on Ubuntu

Here are the steps involved in listing USB devices using Shell/Bash on Ubuntu:

  1. Open the terminal on your Ubuntu machine. You can do this by clicking on the terminal icon or using the Ctrl + Alt + T keyboard shortcut.
  2. Type the following command:
lsusb

This command lists all the USB devices connected to your Ubuntu machine.

  1. If you want to list specific USB devices, you can use a grep command along with the lsusb command. For example, if you want to list only USB devices from a specific manufacturer, you can use the following command:
lsusb | grep "ManufacturerName"
  1. If you want to get more detailed information about a specific USB device, you can use the -v option along with lsusb. For example:
lsusb -v | less

This command lists all the USB devices connected to your Ubuntu machine along with detailed information in a pager called 'less'.

Conclusion

This guide went over the steps involved in listing USB devices on Ubuntu using the command line interface. The lsusb command is a useful tool when working with Ubuntu or any other Linux distribution. With this knowledge, you can easily list and identify USB devices connected to your Ubuntu machine.