LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need help with Linux I suck at it: I have some questions that I need answered (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-help-with-linux-i-suck-at-it-i-have-some-questions-that-i-need-answered-707313/)

jschnell32 02-24-2009 11:13 PM

I need help with Linux I suck at it: I have some questions that I need answered
 
In Linux can there be multiple device files per device

Tinkster 02-24-2009 11:26 PM

Hi, welcome to LQ!

Other than aliases or links?

What are you trying to achieve?


Cheers,
Tink

frieza 02-25-2009 12:11 AM

my guess would be you could, however this would seem inefficient as it would be easier to just create symbolic link to the device node using any name you want, and you can have as many symbolic links pointing to the same device node as you need
(symbolic link is the linux equivalent of the 'shortcut' in windows or the 'alias' in mac-os)

for instance /dev/cdrom isnt usually an actual device node it is usually a symbolic link to the actual device node of your cdrom (/dev/hdX or /dev/srX), but you can access /dev/cdrom as if it were the actual device node

take /dev/cdrom for example
you could do ln -s /dev/sr0 /dev/cdrom which would create a symbolic link, /dev/cdrom that points to /dev/sr0 (the actual cdrom node), and then you could access the cdrom device through /dev/cdrom the same way as if you were using /dev/sr0 directly


All times are GMT -5. The time now is 10:42 AM.