LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systool

Sysfs device information viewer

TLDR

List all buses, classes, and root devices
$ systool
copy
List bus devices with all attribute values
$ systool -b [pci] -v
copy
List class devices with all attribute values
$ systool -c [net] -v
copy
Show only the drivers on a bus
$ systool -b [bus] -D
copy
Show attributes of a specific module
$ systool -m [module_name] -v
copy
Show a single named attribute for a device
$ systool -A [attribute] -b [bus] [device]
copy

SYNOPSIS

systool [options [device]]

DESCRIPTION

systool displays system device information from sysfs by bus, class, and topology. It provides a convenient interface to browse the `/sys/bus/`, `/sys/class/`, and `/sys/module/` hierarchies.Run without parameters, systool lists all available bus types, device classes, and root devices. Passing a device name after the options limits output to that single device. Available buses can be found in `/sys/bus/` and classes in `/sys/class/`; common buses include pci, usb, and scsi, and common classes include block, net, and drm.

PARAMETERS

-b bus

Show information for a specific bus (pci, usb, etc.).
-c class
Show information for a specific class (block, net, drm, etc.).
-m module
Show information for a specific module.
-a
Show attributes of the requested resource.
-v
Show all attributes with values.
-A attribute
Show the value of a single named attribute for the requested resource.
-d
Show only devices.
-D
Show only drivers.
-P
Show the device's parent.
-p
Show the absolute sysfs path to the resource.
-h
Show usage.

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), lsmod(8), udevadm(8)

Copied to clipboard
Kai