Linux command
systool 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Example
systool -b [pci|usb|...] -v
Example
systool -c [drm|block|...] -v
Example
systool -b [bus] -D
说明
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.
参数
- -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
FAQ
What is the systool command used for?
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.
How do I run a basic systool example?
Run `systool -b [pci|usb|...] -v` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b _BUS_ do in systool?
Show devices on specified bus (pci, usb, etc.)