Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install udevadm via command line?

Tags:

ubuntu-16.04

I need to run udevadm trigger but it says

udevadm: missing or unknown command

How do I install this via the command line?

like image 653
wprins Avatar asked Dec 09 '17 22:12

wprins


People also ask

What is the purpose of the command Udevadm monitor?

udevadm monitor [ options ] It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event.

What is Udevadm in Linux?

The udevadm command is a device management tool in Linux which manages all the device events and controls the udevd daemon.

How do I know if udev is running?

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.


1 Answers

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:
...
like image 122
Matt Avatar answered Nov 15 '22 04:11

Matt