查看linux上的usb设备

To check USB devices connected to a Linux system, you can use several command-line tools. Here are some commonly used methods:

1. lsusb Command:

  • This command lists all USB devices connected to your system. It provides basic information about each device, such as the vendor and product ID.

     lsusb

  • For more detailed information, you can use:

     lsusb -v

(Note: Running lsusb -v may require superuser privileges for complete details.)

2. dmesg Command:

  • The dmesg command prints kernel ring buffer messages. You can filter it to show only USB-related messages, which can be useful for diagnosing issues or seeing device connection events.

dmesg | grep -i usb

3. usb-devices Command:

  • This command provides detailed information about USB devices in a more human-readable format. It shows information like the driver used, bus number, and device class.

     usb-devices

4. lshw Command:

  • The lshw command lists hardware information, including USB devices. You can filter the output to show only USB devices.

sudo lshw -classusb

5. udevadm Command:

  • You can use udevadm to query the udev database for USB devices, which can provide detailed information about device properties.

udevadm info--query=all --name=/dev/bus/usb/001/001

Replace /dev/bus/usb/001/001 with the appropriate path to your USB device.

6. GUI Tools:

  • If you prefer a graphical interface, tools like HardInfo or GNOME Disks can provide information about USB devices.

By using these tools, you can gather comprehensive information about the USB devices connected to your Linux system, which can help with troubleshooting or device management.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值