I am studying for a Linux certification from the Linux foundation but I have some questions about one lab. Here is the lab:
- Create and implement a rule on your system that will create a symlink called myusb when a USB device is plugged in.
- Plug in a USB device to your system. It can be a pendrive, mouse, webcam, etc. Note: If you are running a virtual machine under a hypervisor, you will have to make sure the USB device is seen by the guest, which usually is just a mouse click which also disconnects it from the host.
- Get a listing of the /dev directory and see if your symlink was created.
- Remove the USB device. (If it is a drive you should always umount it first for safety.)
- See if your symbolic link still exists in /dev.
what i did in terminal;
Create a file named
sudo vim /etc/udev/rules.d/75-myusb.rules
and have it include just one line of content:
restart udev service and check
sudo /etc/init.d/udev restart ls -lF /dev | grep myusb
But than no output from last command, no listing at all.
How can I check if the symlink was created?