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)

5
votes
1answer
4k views

How do I move a linked file on Unix?

I have a bunch of files in one directory and links to each one of those files in another directory. So ls -l looks something like this: lrwxrwxrwx 1 rembol rembol 89 Jan 25 10:00 copyright.txt ->...
3
votes
2answers
1k views

How to make symbolic link independant of drive letter

I have partitions set up on my windows 7 machine such that one drive holds all my personal documents, while the C drive is meant to hold everything else. To help the two work together, I made some ...
1
vote
1answer
130 views

Possible to “move Windows XP” to data partition using following plan and symbolic links?

Background: I have Windows XP and Windows 7 on the same machine, on different partitions. Thus, I can perform operations on either OS while said OS is not running. Terminology: "XP:", "7:" and "Data:"...
1
vote
1answer
2k views

MacOS: How to “cd” into a symlink?

I have a folder "abc". I create a symlink: ln -s abc abclink. but then, whan I type, cd abclink it says "No such file or directory". I can see the link, it has "lrwxr-xr-x" permissions, why doesn't ...
1
vote
0answers
1k views

Windows 7 Symlink to network drive root

My Ubuntu server provides storage to my Windows 7 workstation through the use of SMB and network drives. One symlink currently links from a network drive to my iTunes library folder. Within that ...
1
vote
1answer
92 views

Symbolic linking and shrinking available space

I symbolically linked two drives across a folder located in the program files folder of the C:\ directory. This folder is linked to a much larger/slower HDD. Windows is installed on a small SSD ...
3
votes
2answers
2k views

How to mass remove symbolic links in Windows (amongs regular files that share similar name in many folders)?

Is there anyway to quickly remove many symbolic links in many folders that contains many other files. E.g some command in command prompt (be able to delete all slink created from day XX for example)? ...
2
votes
1answer
1k views

Symbolic Links to an Existing Folder

I'm trying to synchronize two folders on two different computers to my Dropbox folder on their respective machines. So for example: XP: C:\Dev -> C:\Documents and Settings\username\Dropbox\Dev OSX: ~...
7
votes
5answers
4k views

How do I alias a Homebrew installed Ruby 1.9 gem binary in /usr/local/bin?

Homebrew's Ruby 1.9 ships with rubygems. Doing gem install ... installs files and binaries into some long-winded path. For example, bundler is installed at: /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/...
5
votes
2answers
458 views

Windows 7 cross-volume symlinks affecting recycle bin

Related to this question but not identical. Scenario: C:\Folder\Symlink\ is a symlink pointing to E:\Folder\Folder\Target\ Problem: Deleting a file through C:\Folder\Symlink\* bypasses the Recycle ...
4
votes
2answers
371 views

Hard/SymLinks and Alternate Data Streams

An interesting thought just occurred to me while thinking about NTFS. NTFS supports hard links, symbolic links, and Alternate Data Streams. Is it possible for an ADS to be a link to another file? ...
15
votes
4answers
5k views

Scenario - NTFS Symbolic Link or Junction?

Differences ┌───────────────┬──────────┬──────────┬──────┬───────────┬─────┐ │ │ Absolute │ Relative │ File │ Directory │ UNC │ ├───────────────┼──────────┼──────────┼──────┼───────────...
0
votes
1answer
63 views

How to filter repeated symbolic links

I have different symbolic links aliases for a set of files (beware, some symbolic links might point to other symbolic links in the same directory) and I would like to get a list of unique files they ...
0
votes
1answer
2k views

Unix pipe: find | ln -s

I'm trying to symlink some php files using the following command: find `pwd` -name "*.php" | ln -s * /home/frankv/www/bietroboter.de/symlinks However, all the symlinks are broken because the little ...
2
votes
3answers
30k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...
7
votes
1answer
16k views

How do you make a symbolic link with a relative path using mklink?

This web page implies that it is possible to make symbolic links with relative paths using mklink. I have tried all sorts of ways to make relative symbolic links, but I always end up with an absolute ...
3
votes
2answers
317 views

Aren't egrep, fgrep supposed to be aliases to grep?

Since egrep is essentially grep -E I would expect it to be an alias that calls grep with that option. However on my system file `which egrep` shows it is an executable. Also egrep as an alias only ...
0
votes
0answers
376 views

Unable to log into Windows 7 after moving users folder via symlink

I'm unable to log into Windows 7 after moving the Users folder via symlink. I used the command prompt in System Recovery to move the folder. F:\ is my SSD which I want to move from, while C:\ Is the ...
4
votes
4answers
25k views

How can I create a directory symbolic link on Windows Server 2003?

I'm trying to create a directory symbolic link under Windows Server 2003 but I'm not having any luck. I've tried junction.exe (Sysinternals), ln.exe, and linkd.exe (Windows Server 2003 Resource Kit). ...
11
votes
5answers
19k views

How to allow acces to a symbolic link in my ~/Sites/ for Apache under Mac OS X Lion 10.7.2

I need allow access to a sym-linked directory within ~/Sites from my Apache. I Symlinked the directories like this ln -s ~/path/to/the/source/directory/ ~/Sites/source-link-here Now whenever I fire ...
1
vote
2answers
4k views

How can I create a symlink which points to another symlink?

Is there any way to create a symbolic link which points to another symbolic link? I have link A (pointing to address1 = /home/data/username/var) in /home/data directory and I need to create link B ...
2
votes
1answer
334 views

OS X: prevent Finder/File Chooser from following directory symlinks

I have a have a symlink foo in /Users/myaccount which points to /Volumes/foo. In the Finder or file chooser, the symlink does not show up as directory, so I can't expand it to select /Users/myaccount/...
0
votes
3answers
667 views

Understanding Linux symlinks

I have two directories on a virtual machine. One of them is my home/user directory, the other is the /var/www/html folder which renders the public website. Every time I upload files for my web app ...
0
votes
1answer
330 views

Accessing a symbolic link on a Mac, when the directory is shared and mapped to a Windows drive letter

The symbolic link points to an external hard drive on the Mac. When I access the symbolic link from the Windows machine, I get an access denied error. What do I need to do so that I can get to the ...
43
votes
4answers
7k views

What are the various link types in Windows? How do I create them?

Is it possible to link two files or folders without having a different extension under Windows? I'm looking for functionality equivalent to the soft and hard links in Unix.
4
votes
1answer
585 views

How synchronize two disks (or folders) using symbolic (or hard) links (like rsync)?

I'm searching a tool or a shell script or another program to synchronize two or more folders or disks. But it differs of rsync tool, because, I don't want to duplicate the missing file, but do a ...
1
vote
1answer
35 views

linking private documents in public directory

On an OS X server, I have some documents in /Users/me/Documents/here/ Permissions to /Users/me/Documents is set to drwxrwxr--. Permissions to /Users/me/Documents/here is set to drwxrwxr-x. I want ...
212
votes
2answers
108k views

“directory junction” vs “directory symbolic link”?

MKLINK [[/D] | [/H] | [/J]] Link Target /D Creates a directory symbolic link. Default is a file symbolic link. /H Creates a hard link instead of a symbolic link. /J Creates ...
3
votes
1answer
908 views

What happens when I backup a symbolic link to a briefcase?

The story: I recently started trying DropBox. After some fiddling, I found I could use an app, DropBoxFolderSync, to sync a folder with DropBox, leaving something called a "Symbolic Link" (which seems ...
0
votes
2answers
201 views

How to create a symbolic link in an other directory?

There are two directories A and B and a file F which is located in B. The working directory is B. How can you create a symbolic link in A pointing to F in B without changing the directory?
0
votes
0answers
193 views

Cannot symlink MyISAM databases

So we're a few web developers working on their own projects, which we'd like to access remotely, but still work locally (so, LAMP on the server, MAMP on each computer). The benefits include easily ...
2
votes
2answers
719 views

A sync method that creates symbolic links?

Does anybody know of an sync app that can produce symbolic links rather than copying the files? Or what would a (Windows) batch script look like that does this? If a script is the solution, I want to ...
3
votes
2answers
6k views

How get full path to target of link

If I have a symbolic link /var/opt/foo created with ln -fs /path/to/target/dir foo. How can I in a script that sees only the link get /path/to/target/dir? What I want to achieve in the script is rm -...
16
votes
1answer
29k views

When creating a symbolic link, how do I troubleshoot 'too many levels of symbolic links'?

I'm trying to create a symbolic link on Ubuntu 10.04 it says: me@laptop:~/PHPUnit$ ls assertions.php LICENSE PHPUnit README.markdown build.xml package.xml phpunit.bat ...
2
votes
1answer
159 views

Developer is requesting that I symlink /sbin/shutdown to /bin/shutdown, why?

A developer who is build a bespoke system for my company is asking me to set the following symlink, and I'm not sure whether there is any point to this at all, and why the developer can't just change ...
1
vote
1answer
213 views

Is there a fast method of changing directory to a symbolic links parent or source?

Say I have folder stucture: |- dir1/ | |- sub1/ | |- dir2/ |- sub1link -> /dir1/sub1/ and my current working directory is sub1link, is there a quick way to either: change directory to ...
1
vote
1answer
168 views

Find symbolic links

I'm awared that find -L or find -type l would find all symbolic links on a given path. But I'm trying to find all symbolic links that points to my foo folder. Any tips?
1
vote
0answers
217 views

Flatten symlink for Virtualbox Share

I have a Virtualbox machine that I use for development, and I mount a directory for a project I'm working on within it. This directory has symlinks to a few other directories around my host file ...
6
votes
2answers
1k views

How to stop following symlinks in dropbox

What I have: Dropbox\ projects\ serverfault\ stackoverflow\ superuser\ currentProject -> projects\superuser [Sometimes I change it to other project] When I sync ...
2
votes
1answer
298 views

Symlink all files but copy certain extensions

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,...
0
votes
1answer
101 views

symbolic links rename destination with out effecting source (xp machine)

i'm using windows XP i have a directory with an invalid naming schame, i would like to clone the dir (without actually coping it, as in symlinks) and rename the files there in the proper manner for ...
0
votes
1answer
474 views

Mac osx — view contents of a symlink?

Basically I want to look inside the symlink. Is this possible?
3
votes
1answer
114 views

What kind of link is this, and how do I deal with them?

I've got an application that has created some sort of filesystem directory link that I've never come across. It appears to behave exactly like a symbolic link to the directory, except that as far as I ...
1
vote
2answers
2k views

Change many symbolic links at once?

I have about 40 symbolic links in a directory that look like this: lrwxr-xr-x 1 anna staff 45B 22 Jun 11:20 menu-bg-left.jpg -> ../../../../../hg/www/images/menu-bg-left.jpg lrwxr-xr-x ...
0
votes
1answer
306 views

Remove (symbolic link) item from “Favorites” menu from command line

When I say "Favorites", I am referring to the one on the left side of your Explorer window, not the Favorites folder located at C:\Users\username\Favorites. I have a problem where on of the "...
15
votes
3answers
12k views

Executing symbolic link to exe - “The specified path does not exist”

When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check ...
51
votes
2answers
47k views

How do file permissions apply to symlinks?

Let's say you have this structure: + directory -- file1 -- file2 -- file3 -> /tmp/file3 file3 is a link to another file3 somewhere else on the system. Now let's say I chmod 777 the directory ...
1
vote
1answer
11k views

Create link to executable in parent directory (..)

Create the following directories: parent/child Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "...
0
votes
1answer
1k views

VirtualBox on Wubi Ubuntu can't start VMs due to incorrectly handling absolute paths

Maybe what I'm trying to do doesn't make sense, if so please bear with me, I am not a Unix guy at all. I mostly do .Net development in a Windows 7 virtualbox. I use the host for simple things such as ...
0
votes
0answers
334 views

Linking directories in c:\Windows on Windows 7 64bit

I bought a SSD to make it C:. As SSD size is pretty small, I'm trying to reduce the number of files in C:. After running WinDirStat, I found that 4.6G of space is used for c:\Windows\Installer. Is ...