Trigger a notification on USB device insertion using udev Using gawk (opens in new tab)
udevadm monitor --udev --subsystem-match=usb | gawk '/add/ { system(\"espeak \\"USB device attached\\"\") }' - (Trigger a notification on USB device insertion using udev ). The best command line collection on the internet, submit yours and save your favorites.
Read the original article