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)

3
votes
1answer
303 views

using junctions and moving the Recycle Bin to the right partition

I have got two partitions on a PC running Windows XP: C: system partition D: data partition Usually every user has got his user profile on C:\Documents and Settings\<user> But I have moved ...
6
votes
4answers
802 views

VIM destroys symbolic links under Windows

It seems that when working with a file in VIM it primarily uses a backup version of the file then overwrites the original on save. This is a problem when using symbolic links under Windows (e.g. ...
0
votes
2answers
393 views

Can I link log files to my web directory var/www?

Can I link log files to my web directory var/www ? so I have var/www/logs And then remove reading permission to others in my unix link preferences ? By the way can I change links preferences ?
9
votes
2answers
1k views

When would one prefer a Junction Point (Directory Hard Link) over a symbolic link?

Technically, I get the difference between the two; this is just a usage question. In particular, I want to move some folders off of a smaller hard drive and onto a larger one, but I need to use some ...
1
vote
2answers
952 views

Linux $PATH variables, soft links, and Command Not Found

I am having problems with symbolic links and the $PATH variable. I have a directory: # /usr/rulerX/square where /usr/rulerX/square is a symbolic link such that: # ls -la square --> ...
3
votes
1answer
150 views

Editing softlinked files in UNIX

Let's say I have file A, and using 'ln -s A B', I have B. When I open, edit and save B, now B is not symlink anymore. It's just a new copy of A. Is this expected behavior? I use Mac OS X, and I ...
2
votes
2answers
311 views

shell utility to check if directory is an ancestor to a file

How can I check that a given regular file of path f is a descendant of a directory of path d. If not for symlinks, I would just check if d (with a trailing slash) is prefix to f. Now with symlinks ...
11
votes
4answers
6k views

Does window have the ln -s or equivalent?

I need to link a file to c:\Windows\System32\drivers\etc\hosts. How can I do that with windows? Is there a soft link such as 'ln -s' or equivalent in Windows?
3
votes
1answer
1k views

what is the difference between a symlink , junction , hard link and so on? [duplicate]

Possible Duplicate: What is the difference between NTFS hard links and directory junctions? well just got a litlle confused about all of them. so any explanation?
1
vote
2answers
2k views

TortoiseSVN ignore symlinks

I have a project on my Windows 7 machine that contains symlinks. When I try to commit the project to an SVN repository TortoiseSVN fails with "Symbolic links are not supported on this platform". ...
1
vote
1answer
763 views

how to create symbolic link to all my sub folders to another folder?

I know I can use for loop for it but it will fail when any new folder will come, if is there any good alternative to create symbolic link of all my sub folder which can take care if any new folder ...
5
votes
2answers
4k views

How can I make git commit files in a symlinked folder

I have two folders: /home/me/code/project/ /srv/www/projectfiles/ In the /home/me/code/project folder, I have symlinked static to /srv/www/projectfiles/ i.e. /home/me/code/project/static/ -> ...
3
votes
1answer
721 views

OS X: alias vs. symlink

What is the difference between an "alias" and a symlink on OS X?
0
votes
1answer
103 views

linux: links don't work after mount

This is not your classic programming question and since I'm quite new to this (really cool!) site, I'm not sure if this is the place, so I'll try anyway. I work in a lab when all the guys use PCs ...
108
votes
6answers
99k views

How can I delete a symbolic link?

I created a symlink using mklink. Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.
3
votes
1answer
4k views

How do I make a symbolic link on Windows 7?

I've recently changed from Ubuntu to Windows 7. One feature I'm struggling to develop without, is symbolic links. In linux, I would simply ln -s /where/to/ /where/from/ I've done some googling for ...
2
votes
3answers
4k views

Batch Update Symbolic Links Recursively

I have a web app that has a bunch of symbolic links in subdirectories throughout it. I need to move the app to another directory structure, and I need to update all the symlinks to point to the new ...
0
votes
2answers
377 views

How to get Documents and Settings/username/Local Settings/Temp mapped on another drive

I have a very fast SSD secondary drive, which I"d like to use for my temporary files. I have a program I cannot change that I need to run all the time, and which uses Documents and ...
1
vote
1answer
895 views

Ubuntu symbolic link the content of a folder

I have two folders such as nonserved/ folder1/ folder2/ and a served folder via Apache media/ js/ css/ img/ In the end, I want to include/append contents of /nonserved to ...
10
votes
2answers
2k views

Tab-completion with directories/links

I have this problem with tab-completion in terminal in both archlinux and ubuntu: I have a link which links to a directory named "something" in my home directory. Now when I open a terminal and want ...
1
vote
1answer
2k views

symlink and sudo executable

If I have the below sudoers entry usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file When I log-on as usera and ...
2
votes
1answer
619 views

Are my Linux symbolic links acting correctly?

I've been using Linux on and off for the last 15 years and today I came across something in bash that surprised me. Setup the following directory structure: $ cd /tmp $ mkdir /tmp/symlinktest $ ...
0
votes
1answer
73 views

How to change the address at FAT(or similar) to change the location of file?

I have a huge file which is about 67 GB is size. It takes a long time to move this file from one drive to another. So is there a way, from which I can change its memory address(I dont know the ...
3
votes
3answers
428 views

How to know the level of a symlink in linux?

For example, if a symlink a -> b b -> c c -> d say, the symlink level of a is 3. Then, is there any utility to get this info? And, also I want to get the expansion detail of a symlink, ...
5
votes
5answers
18k views

Windows Server 2008 Create Symbolic Link, updated Security Policy still gives privilege error

Windows Server 2008, RC2. I am trying to create a symbolic/soft link using the mklink command: mklink /D LinkName TargetDir e.g. c:\temp\>mklink /D foo bar This works fine if I run the command ...
0
votes
4answers
901 views

Linux: Can I link multiple destinations via softlinks?

Attempting to end up with something similar to this: $ ls -l lrwxrwxrwx 1 user group 4 Jun 28 2010 foo -> /home/bar lrwxrwxrwx 1 user group 4 Jun 29 2010 foo -> /etc/bar The ...
6
votes
5answers
8k views

Windows 7 / Symlinks - How do I copy a Symlink to a directory?

Is it possible to copy a Symlink to a directory in Windows 7. When I try to copy a symlink'd directory, it tries to deep copy the contents to the location.
23
votes
3answers
19k views

How do I create a relative symbolic link in Linux?

I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?
7
votes
7answers
2k views

Automatically cycle numerous or large files to the trash

I've been tasked with fixing a vendor's program that, under certain conditions, dumps gigs of junk files into a log directory. It ends up filling users' machines. My task is to figure out how to make ...
1
vote
3answers
2k views

So I want to separate my Program Files from the hard disk with the other system files. What is the best way to do this?

So I am running Windows 7 as my only OS. I have two hard drives on my computer. The first one is a 74GB Western Digital 10K RPM Raptor. The second one is a 1TB Seagate Barracuda (couldn't remember ...
61
votes
7answers
99k 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
776 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
662 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
956 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
520 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 ...
6
votes
2answers
5k 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 ...
14
votes
3answers
13k 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
105 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 ...
36
votes
8answers
52k 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
423 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
785 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
323 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 ...
7
votes
2answers
16k 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
341 views

vifm: creating symbolic links

How does one create a symbolic link in vifm? The documentation and help file mention no word of it.
7
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 ...
4
votes
1answer
971 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)?