Symbolic linking

Discussions Regarding Software

Moderator: Moderators

Symbolic linking

Postby avoura » Wed Sep 19, 2007 1:48

Sorry if this sounds like a stupid question, but how do I create a symbolic link to a directory?

I was able to do it okay in Xandros Linux, but I cannot find the option in Sabayon. i.e. in Xandros, in its File Manager, I just right clicked a file or directory and clicked on Create Symbolic Link. But using Konqueror in Sabayon, this is not available.

I know there is a way to do it, but I don't know it from the command line or any other way.
Last edited by avoura on Sun Dec 30, 2007 0:03, edited 1 time in total.
avoura
Baby Hen
 
Posts: 17
Joined: Wed Apr 11, 2007 13:23
Location: London, UK

Re: Symbolic linking

Postby Eden » Wed Sep 19, 2007 3:02

ln -s <file you want to link> <location of link>
Eden
Growing Hen
 
Posts: 176
Joined: Fri May 18, 2007 16:44
Location: Scotland, UK

Re: Symbolic linking

Postby avoura » Sat Dec 29, 2007 23:13

I tried the following
Code: Select all
ln -s /home/avoura/Pictures "/media/picsvids/My Pictures"


but it did not work.

I want to put a link in my home directory (avoura) pointing to a directory containing pictures called My Pictures on a partition mounted as picsvids on /media

So am I doing it wrong?
avoura
Baby Hen
 
Posts: 17
Joined: Wed Apr 11, 2007 13:23
Location: London, UK

Re: Symbolic linking

Postby avoura » Sat Dec 29, 2007 23:15

It is okay now, I figured it out, I had the things the wrong way round.
It should be
ln -s [location of file or folder to be linked to] [name of link]
avoura
Baby Hen
 
Posts: 17
Joined: Wed Apr 11, 2007 13:23
Location: London, UK

Re: Symbolic linking of network drives

Postby avoura » Sun Dec 30, 2007 0:02

However, I cannot figure out how to link to a network drive. I have a NAS with 2 hard disks and want to link to both of these drives in my home directory.
How do I do that?
avoura
Baby Hen
 
Posts: 17
Joined: Wed Apr 11, 2007 13:23
Location: London, UK


Return to Software in General

Who is online

Users browsing this forum: sqlpython and 3 guests