LinuxCommandLibrary

systool

Sysfs device information viewer

TLDR

List bus device attributes
$ systool -b [pci|usb|...] -v
copy
List class device attributes
$ systool -c [drm|block|...] -v
copy
Show drivers for a bus
$ systool -b [bus] -D
copy

SYNOPSIS

systool [OPTIONS]

DESCRIPTION

systool displays system device information from sysfs by bus and class. It provides a convenient interface to browse `/sys/bus/` and `/sys/class/` hierarchies.
Available buses can be found in `/sys/bus/` and classes in `/sys/class/`. Common buses include pci, usb, and scsi; common classes include block, net, and drm.

PARAMETERS

-b BUS

Show devices on specified bus (pci, usb, etc.)
-c CLASS
Show devices of specified class (block, drm, etc.)
-v
Show all attributes verbosely
-D
Show only device drivers
-d DEVICE
Show specific device
-p PATH
Show device at sysfs path

CAVEATS

Requires the sysfsutils package. Information comes from the kernel's sysfs interface. Some attributes may require root to read.

HISTORY

systool is part of the sysfsutils package, providing user-friendly access to the Linux sysfs virtual filesystem that exports kernel device information.

SEE ALSO

lspci(8), lsusb(8), udevadm(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard