udevadm

Linux udev management tool. More information: <https://www.freedesktop.org/software/systemd/man/udevadm>.

Install

All systems
curl cmd.cat/udevadm.sh
Debian Debian
apt-get install udev
Ubuntu
apt-get install udev
Alpine
apk add udev
Arch Arch Linux
pacman -S systemd
image/svg+xml Kali Linux
apt-get install udev
CentOS
yum install udev
Fedora
dnf install systemd-udev
Windows (WSL2)
sudo apt-get update sudo apt-get install udev
Raspbian
apt-get install udev
Docker
docker run cmd.cat/udevadm udevadm powered by Commando

Linux udev management tool. More information: <https://www.freedesktop.org/software/systemd/man/udevadm>.

  • Monitor all device events:
    sudo udevadm monitor
  • Print `uevents` sent out by the kernel:
    sudo udevadm monitor --kernel
  • Print device events after being processed by `udev`:
    sudo udevadm monitor --udev
  • List attributes of device `/dev/sda`:
    sudo udevadm info --attribute-walk /dev/sda
  • Reload all `udev` rules:
    sudo udevadm control --reload-rules
  • Trigger all `udev` rules to run:
    sudo udevadm trigger
  • Test an event run by simulating loading of `/dev/sda`:
    sudo udevadm test /dev/sda

© tl;dr; authors and contributors