get_device
sysfs query tool and boot-time setup
Install
- All systems
-
curl cmd.cat/get_device.sh
- Debian
-
apt-get install sysfsutils - Ubuntu
-
apt-get install sysfsutils -
Alpine
-
apk add sysfsutils - Arch Linux
-
pacman -S sysfsutils - Kali Linux
-
apt-get install sysfsutils - CentOS
-
yum install sysfsutils - Fedora
-
dnf install sysfsutils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install sysfsutils - Raspbian
-
apt-get install sysfsutils - Docker
-
docker run cmd.cat/get_device get_devicepowered by Commando
sysfsutils
sysfs query tool and boot-time setup
Sysfs is a virtual file system in Linux kernel 2.5+ that provides a tree of system devices. This package provides the program 'systool' to query it: it can list devices by bus, class, and topology. In addition this package ships a configuration file /etc/sysfs.conf which allows one to conveniently set sysfs attributes at system bootup (in the init script /etc/init.d/sysfsutils). If you need sysfs queries in own programs, then you may want to use the libsysfs library directly (package libsysfs-dev).