I would like to learn udev rules. Here is what I do:
victor@X301A1:~$ ls /etc/udev/rules.d/
70-persistent-cd.rules 70-persistent-net.rules README
Then:
victor@X301A1:~$ sudo gedit /etc/udev/rules.d/01-my-first-udev.rules
My rule:
ACTION=="add", RUN+="echo HELLO ! > /home/victor/udev_test_log.txt"
After saving the file:
sudo udevadm control --reload-rules
I expected that connecting an USB device would write in the file but nothing happens.
Where am I wrong?