mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 19:55:59 +00:00
Update cheatsheets
This commit is contained in:
22
tldr/linux/systool
Normal file
22
tldr/linux/systool
Normal file
@@ -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: <https://github.com/linux-ras/sysfsutils>.
|
||||||
|
|
||||||
|
- 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`
|
||||||
Reference in New Issue
Block a user