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.

INSTALL

sudo apt install sysfsutils
copy
sudo dnf install sysfsutils
copy
sudo pacman -S sysfsutils
copy
sudo apk add sysfsutils
copy
sudo zypper install sysfsutils
copy
nix profile install nixpkgs#sysfsutils
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid