Forrest logo
back to the udevadm tool

udevadm:tldr:688cc

udevadm: Trigger all `udev` rules to run.
$ sudo udevadm trigger
try on your machine

The command "sudo udevadm trigger" is used in Linux systems to explicitly trigger the re-evaluation of rules defined in the udev (device manager) subsystem.

Here's a breakdown of the command:

  • "sudo": It is used to gain administrative privileges or execute commands as a superuser. It prompts the user for their password and, if authorized, allows them to execute the subsequent command with elevated privileges.

  • "udevadm": It is a command-line utility used for managing devices in the udev subsystem of Linux. It provides various options to control and inquire about the state of devices, as well as apply rule changes.

  • "trigger": It is a specific subcommand of udevadm used to trigger the re-evaluation of udev rules. When this command is executed, udev will reapply the rules specified in its configuration files, update device nodes accordingly, and trigger the necessary events.

Overall, running "sudo udevadm trigger" allows a user to manually initiate the re-evaluation of udev rules, ensuring that any changes made to the rules are immediately applied to the system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the udevadm tool