Ubuntu – SYMLINK in udev rule


I created a udev rule named "/etc/udev/rules.d/75-myusb.rules".

The only thing inside it is this line:

SUBSYSTEM=="usb", SYMLINK+="myusb"

After creating it I plugged a USB drive and a file named myusb is indeed created inside /dev

enter image description here

Since it is a SYMLINK I did assume that I can use it to navigate into the USB. But it doesn't work that way.

enter image description here

Am I misunderstanding what a SYMLINK can do or am I missing something here?

Best Answer

Your symlink points to the device file associated with the USB drive. That's different from the mount point where you can access the file system on your USB drive.

As a device file is not a directory you can't use cd with a device file or a symlink pointing to a device file.

Related Question