#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 12. System Utilities

- Prev

  sysmon3-3.0.1

- Next

  Programming

- Up
- Home

# usbutils-019

## Introduction to USB Utils

The USB Utils package contains utilities used to display information about USB buses in the system and the devices connected to them.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://kernel.org/pub/linux/utils/usb/usbutils/usbutils-019.tar.xz

- Download MD5 sum: 67a8eb4782540058d0648f83ecabdf6c

- Download size: 120 KB

- Estimated disk space required: 1.9 MB

- Estimated build time: less than 0.1 SBU

### USB Utils Dependencies

#### Required

libusb-1.0.29

#### Recommended

hwdata-0.406 (runtime)

## Installation of USB Utils

Install USB Utils by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup ..            \
          --prefix=/usr       \
          --buildtype=release &&

    ninja

This package does not come with a test suite.

Now, as the `root` user:

    ninja install

For the `usb.ids` data file, install the hwdata-0.406 package.

The script lsusb.py displays information in a more easily readable form than lsusb. To find the options, use lsusb.py -h. One form of use recommended by the developer is lsusb.py -ciu.

## Contents

Installed Programs: lsusb, lsusb.py, usb-devices, and usbhid-dump
Installed Libraries: None
Installed Directories: None

### Short Descriptions

lsusb | is a utility for displaying information about all USB buses in the system and all devices connected to them, but not in human friendly form
lsusb.py | displays information about all USB buses in the system and all devices connected to them in reasonable human friendly form
usb-devices | is a shell script that displays details of USB buses and devices connected to them. It is designed to be used if /proc/bus/usb/devices is not available on your system
usbhid-dump | is used to dump report descriptors and streams from HID (human interface device) interfaces of USB devices

- Prev

  sysmon3-3.0.1

- Next

  Programming

- Up
- Home