A symbolic link ("symlink") is a reference to a file or folder which may exist on the same or another drive in the system. Symbolic links allow users to create a more logical file layout, when the files themselves may be spread across multiple disks or relocated to more convenient locations.

learn more… | top users | synonyms (1)

54
votes
6answers
84k views

How to copy symbolic links?

I have directory that contains some symbolic links: user@host:include$ find .. -type l -ls 4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include 4737415 ...
0
votes
3answers
751 views

Firefox 3.6.3 on Snow Leopard 10.6.3 - symbolic link to command line binary doesn't work?

I have Firefox 10.6.3 installed on Mac OS X Snow Leopard from the DMG. I can run firefox from the terminal using /Applications/Firefox.app/Contents/MacOS/firefox-bin. However, if I create a symbolic ...
1
vote
1answer
640 views

How to find source of a symbolic link?

Say fileA is a sym link to fileB. I have only fileB at hand and want to find all files that are sym links to fileB. Is there a command to show this in *nix?
2
votes
1answer
942 views

how would i find all locations of symlinks that point to a particular path or file?

I have a file system where one or more symlinks exist to a file. Is there a way to go thru each file and determine where all the symlinks that point to it on the file system are? OS is Ubuntu 9.10 ...
0
votes
1answer
513 views

Problem running mercurial against symlinked .hgrc file under Cygwin/Windows 7

This is not a question about handling symlinks in the mercurial repository. I have this setup at work where I keep my dotfiles in a separate directory (.configuration) that I can use to synch my ...
1
vote
1answer
3k views

How to link a directory in Ubuntu to a directory in Windows 7?

I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the ...
5
votes
2answers
4k views

Symbolic links and 7zip

I'm trying to compress a folder into a .7z archive. This folder contains symbolic links to some other stuff outside the folder (both directories and files). Apparently 7zip just archives the link ...
13
votes
3answers
12k views

Ubuntu + latest samba version, symlinks no longer work on share mounted in windows

I just apt-getted (apt-got?) the latest software for my Ubuntu 9.10 linux box, and I noticed that samba was the included in the update. After the install, the symlinks in my home directory no longer ...
2
votes
1answer
104 views

Would it be okay to share Firefox's user.js between Linux and Windows?

Would it be okay to share Firefox's user.js between Linux and Windows (using a symbolic link in Linux)?
0
votes
1answer
2k views

Samba: share home directories when home directories are symbolic links

I have set up a new Ubuntu 9.10 system for five users. In the system is a large LVM volume where all the data is to be kept. The main system disk is not for this purpose, so I attempted to move the ...
35
votes
8answers
49k views

How do I create a link in Windows 7 home premium as a regular user?

I am a Linux guy and as such I am very lost when I try and do anything is Windows. I am trying to create the following link: mklink /d C:\backup\data \\myth\backup\data But I do not have sufficient ...
1
vote
2answers
416 views

Symlinks are inaccessible by their full path on OS X

I have symlinks pointing to applications placed in /usr/local/bin which is in the path. However, I can't run these applications from other folders. Even more weird, I can't access them by the full ...
1
vote
3answers
718 views

How do I get Windows XP to change where My Videos, My Music and My Pictures folders are pointing to, to make them act like Linux symlinks?

I love how in Linux you can link to folders. Is there some way to get the same functionality in Windows XP, maybe by editing the Registry.
1
vote
4answers
2k views

Ubuntu - Create a link to a specified directory so I can easily change to that directory

Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go ...
4
votes
1answer
322 views

Unix: softlinks, hardlinks

I am somewhat confused what the differences between a softlink, and a hardlink are (on unix). It seems like a softlink is the same as a shortcut in windows or an alias on Mac OS X. (Can someone ...
6
votes
2answers
15k views

Using symbolic link in Windows XP

Junction is a good symbolic link tool in XP. However, it's not so easy to use at first moment, ie. only can use command line interface; move/rename target file/folder; got to use 'junction -d ' to ...
1
vote
1answer
1k views

Web shortcuts (.url) not working on Windows 7

I'm experiencing several symptoms, but I believe they are all related to web link files not working. First, I can't create we link files anymore. When I try New > Shortcut and put an URL, I get the ...
1
vote
2answers
329 views

vifm: creating symbolic links

How does one create a symbolic link in vifm? The documentation and help file mention no word of it.
6
votes
2answers
7k views

Linux, can a home directory be symlinked?

I have a second large storage hdd mounted in Ubuntu in /media/storage. I would like my home directories for me and all future users of the system to be located on this storage drive as well. I was ...
5
votes
1answer
873 views

How do I figure out if a link is a symbolic link, a hard link, or a directory junction in Windows?

If I've created a directory link via mklink, how can I figure out if it was a symbolic link, a directory junction, or a hard link (ie whether I used /d, /j, or /h)?
5
votes
1answer
2k views

No symlinks allowed in smb share

I have the following share setup on my Ubuntu machine # From /etc/fstab //192.168.1.13/media /home/USER/SHARE/media cifs username=USERNAME,password=PASSWORD,_netdev,uid=USER,gid=users 0 0 However ...
2
votes
4answers
467 views

Linux: file recovery

I desperately need some help regarding problem I am facing now. While creating a softlink for a very important file I gave the reverse command by mistake. Instead of giving it "ln target linkname" I ...
9
votes
1answer
7k views

Permission to make symbolic links in Windows 7?

How can I grant a particular user the permission to create symlinks in Windows 7? I've searched through "Group Policy" and Google, but haven't found anything. On a side note, is there a way to ...
5
votes
3answers
8k views

How can I break a symbolic link loop?

While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I ...
5
votes
1answer
2k views

How to find all symbolic links to a given file/directory?

How can you find all symbolic links to a given file / directory? This previous question only applies to hardlinks (if I read correctly).
9
votes
2answers
6k views

Finding all symbolic and hard links to a file on UNIX

If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
1
vote
2answers
761 views

Auto-symlink contents of directory in my home directory?

So I'm a dual-booter. I'm looking for an easy way to keep up-to-date symlinks in my Linux home folder pointing to every file and folder in the root of Windows personal directory. So, say I have ...
0
votes
1answer
1k views

Changing the user folder in Windows 7

I know this could be a duplicate, but let me explain. Let's say I want C:\Users\Me to be a link to E:\me. Like the other question says, I tried doing mklink /d C:\Users\Me E:\me. However, I get a ...
1
vote
2answers
98 views

Symbolic links in root

We have a (small) lan of linux boxes running cross mounted directories where in each host has the others mounted as hostname:/ on /hostname. So for completeness, each machine could also have itself ...
6
votes
2answers
24k views

How to find all soft links (symbolic links) in current directory?

Question relates to shell-scripting in bash. How to check with a script which files within the current directory are soft links? In case I have used the wrong term, when I say soft links, I am ...
2
votes
1answer
3k views

Soft link to external drive not visible in apache directory listing

I am on Ubuntu 8.10, and generally share my content with ppl on LAN by creating soft links in Apache2 document root to the intended directory. So if I want to share my Videos directory I will CD ...
85
votes
6answers
81k views

chown is not changing symbolic link

I'm trying to change the user/group of a symbolic link with the command: $ chown -h myuser:mygroup mysymbolic/ But it's not changing. I'm logged in as root. The current user/group is set to ...
1
vote
2answers
1k views

Could I use directory junctions (symbolic link) to share music between 2 users in Windows 7

I want to have 2 users be able to use the same itunes library and be able to sync an ipod which ever user is logged in. I tried making both the My Music folders point to the same folder, but that ...
0
votes
2answers
309 views

Symbolic Linking On WinXP

I'm running Windows XP and Cygwin. Is there a way to create some kind of symbolic link so that, if a non-Cygwin program is passed /cygdrive/c as a command line argument, it looks in c:\ for whatever ...
6
votes
2answers
12k views

Ubuntu: Creating a symlink with network shared folder

I'm trying to create a symlink with a network shared folder (located in a windows sys) from my ubuntu system using the command. ln -s smb://sys-name/www www It creates a link but it says the link is ...
8
votes
4answers
8k views

How can I find all symlinks in Windows Vista or 7?

I'm looking for a way to search for all the symbolic links on a NTFS filesystem on Windows Vista or 7. It would be even better if I could specify a specific target to see if it has any symlinks ...
4
votes
2answers
3k views

NTFS symlinks in linux

I have an NTFS formatted drive (from a previous windows installation) and it contains some symlinks (reparse points), For some reason, I can't do anything with these symlinks: I can't go to where ...
1
vote
2answers
223 views

rm -rf problem on ubuntu 9.04

Ok this is a sort of solved problem, however i am still interested in what was behind it.. I have been building chromium from source for a while now, and decided to get rid of the src directroy and ...
1
vote
2answers
1k views

Linked Files and Folders in OSX from Finder? [duplicate]

Possible Duplicate: Create a symbolic link in the Mac OS X Finder I use ln -s original new to make linked directories in OSX, but there must be a way using my mouse... no?
6
votes
4answers
5k views

What are the advantages of symlinks over hard links and viceversa?

I understand the differences between symbolic and hard links, but I've never understood why choose one or the other.
4
votes
4answers
6k views

How to change a symlink in OS X?

How do I change where a symlink points to, without deleting and creating a new one (with ln -s "/path/to/point/to" "/path/where/symlink/is")? When I tried doing that with, for example, to Java's ...
6
votes
4answers
3k views

Need to hide a symbolic link without hiding the directory it links to

I created a symbolic link (specifically a symbolic link & not a Finder alias which bash can't follow) to a directory in my home folder using ln -s link $HOME/directory & now I wish to hide the ...
27
votes
8answers
51k views

Create a symbolic link in the Mac OS X Finder

Is there a way to get the same functionality as the unix command ln -s in the Mac OS X Finder (OS 10.5)? I want to be able to create symbolic links while working in Finder windows without opening the ...
9
votes
3answers
644 views

Figure out what non-symlink path would be?

On Linux, if I've cd'd around and am now in a directory, is there a way to figure out what the real path to that directory is if I had not used a symbolic link to get there? Consider: $ pwd ...
15
votes
1answer
2k views

Why can't normal users on Windows create symbolic links?

Beginning with Windows Vista NTFS gained the ability to represent symbolic links to files (as opposed to directory junctions). Also the mklink utility appeared. However, non-administrative users can't ...
3
votes
1answer
175 views

Links in Excel changed after a crash

A few of my users use Excel spreadsheets that have cells linked to other spread sheats. It is set up so the catering.xslx pints to the inventory,comm2002.xls. I was told that excel will crash and all ...
49
votes
4answers
82k views

How to remove a symbolic link to a directory?

I made a symbolic link with the following commmand: ln -s ../test5 I want to remove it now but my rm fails: $ rm -Rf test5/ rm: cannot remove `test5/': Not a directory $ rm test5/ rm: cannot ...