I need to run udevadm trigger
but it says
udevadm: missing or unknown command
How do I install this via the command line?
udevadm monitor [ options ] It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event.
The udevadm command is a device management tool in Linux which manages all the device events and controls the udevd daemon.
To check whether mdev is working or not , First check in /sbin/ whether mdev is present or not. If it is not present then probably mdev is not configured properly, or else if it is present then check whether hotplug handler has been set properly. i.e inside /proc/sys/kernel/hotplug it should be /sbin/mdev written.
apt install udev
should install it.
However, I just had this same problem when it was already installed! That message is from udevadm telling you it needs a command.
Try running udevadm monitor
Edit: just noticed you were passing trigger
, my best guess is that this is an unknown subcommand for whatever version of udevadm you have. For the record, here is what I get on Ubuntu 18.04:
$ udevadm
udevadm: missing or unknown command
$ udevadm trigger
$ udevadm monitor
monitor will print the received events for:
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With