Click to See Complete Forum and Search --> : symbolic links


star
01-03-2001, 08:09 AM
I'm trying to set my /dev/modem to /dev/ttyLT0.

How can I see if there is a symbolic link to my /dev/modem???

And what if I rm /dev/modem. How can I create it again???

Thanks

clisham
01-03-2001, 08:36 AM
rm /dev/modem
ln -s /dev/ttyLTO /dev/modem

The first deletes your original symbolic link which may not point to /dev/ttyLTO. The second recreates the symbolic link to point to /dev/ttyLTO. If you're using a GUI like KDE or GNOME, you can check where /dev/modem currently links to by right clicking on it and choosing properties. I'm not sure how you check via the command line, but I'm sure it's possible.

Thanks
John

mattmorrow
01-03-2001, 08:54 AM
Easy one first:
mknod /dev/modem will create the new one. Just do an ls -l /dev/modem and make a note of the major and minor device numbers so that you can reproduce them with the mknod command.
ls -l /dev | grep modem
will show any links to /dev/modem in the /dev directory.

You can use "find" with the -type option to search for sym links: find / -type l -print

find also has a -links option that might be helpful

Or even "ls -lR / | grep modem"


[This message has been edited by mattmorrow (edited 03 January 2001).]

star
01-03-2001, 09:01 AM
THANK YOU VERY MUCH GUYS!!!