🖥️udevadm

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the udevadm command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#  ██╗   ██╗██████╗ ███████╗██╗   ██╗ █████╗ ██████╗ ███╗   ███╗
#  ██║   ██║██╔══██╗██╔════╝██║   ██║██╔══██╗██╔══██╗████╗ ████║
#  ██║   ██║██║  ██║█████╗  ██║   ██║███████║██║  ██║██╔████╔██║
#  ██║   ██║██║  ██║██╔══╝  ╚██╗ ██╔╝██╔══██║██║  ██║██║╚██╔╝██║
#  ╚██████╔╝██████╔╝███████╗ ╚████╔╝ ██║  ██║██████╔╝██║ ╚═╝ ██║
#   ╚═════╝ ╚═════╝ ╚══════╝  ╚═══╝  ╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝

# udevadm - udev management tool

# Reload udev rules without reboot
udevadm control --reload-rules && udevadm trigger

# Get sysfs path of a device
udevadm info -q path -n /dev/sda

# Get a list of attributes for a specific device
udevadm info -a -p  $(udevadm info -q path -n /dev/sdb)

# Get an entry for each action taken by KERNEL and UDEV
udevadm monitor --property
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░