From 7d3be03a28b99cea7b72ab2accb60114545de5d2 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 22 Jun 2024 00:14:27 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/systool | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tldr/linux/systool diff --git a/tldr/linux/systool b/tldr/linux/systool new file mode 100644 index 00000000..c0b285dd --- /dev/null +++ b/tldr/linux/systool @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systool + +> View system device information by bus, and classes. +> This command is part of the `sysfs` package. +> More information: . + +- List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`: + +`systool -b {{bus}} -v` + +- List all attributes of a class of devices (eg. `drm`, `block`). View all classes using `ls /sys/class`: + +`systool -c {{class}} -v` + +- Show only device drivers of a bus (eg. `pci`, `usb`): + +`systool -b {{bus}} -D`