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
3answers
259 views

Direction of a symlink

touch a ln -s a b The above command creates a symbolic link which originates from "b" and points to "a": lrwxrwxrwx 1 root root 1 Dec 20 23:41 b -> a The question is that how to say that ...
3
votes
4answers
21k 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). ...
3
votes
1answer
151 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 ...
3
votes
2answers
275 views

Windows symlink to executable - does not open by double click [duplicate]

On Windows 7 I created a symbolic link to an executable using: mklink Test.exe C:\Path\to\source.exe But when I try to run it by double clicking on it, i get the "open with" dialog. Running it ...
3
votes
1answer
581 views

Hard symbolic link directory

I am taking over control of a server and I have found a directory in two different locations: /var/www /home/user.name (i.e., ~/) that have the exact same inode number: ls -i 11895253 ...
3
votes
1answer
7k views

Can somebody explain this `ln -s` command to me?

The command in question is: sudo ln -s /usr/lib/x86_64-linux-gnu/foo.so /usr/lib/ I read this article about ln, which indicates that the latter argument can be either a name or a directory. In this ...
3
votes
1answer
9k views

Using symbolic link directories with Apache, PHP and Windows 7

I am trying to setup a symbolic link for a directory and I am getting the strangest error. I am using: mklink /d C:\www\site\inc C:\inc where C:\inc\script.php is the file I need to run. This ...
3
votes
2answers
170 views

Can't create shortcuts for .com files

I wanted to create a shorcut for c:\windows\system32\more.com file in Desktop using ctrl+shift and drag and drop, and it silently ignored by not creating anything, then I decided to drag and drop it ...
3
votes
2answers
266 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 ...
3
votes
1answer
123 views

Find symlink when 'find' hasn't worked

So I have a few utility scripts in my ~/scripts folder. They are all bash scripts, nothing amazing about that. One is named sfind.sh, the other is svn-add-all.sh. At some point, I created symlinks to ...
3
votes
1answer
104 views

Is there any danger in removing '.' components from a path?

Can the transformation of a path A/./B into A/B change the meaning of the path? I am aware that the path A/foo/../B may not refer to the same object as A/B, due to symbolic links (if foo is a ...
3
votes
1answer
1k views

Do I have to chmod after ln -s?

After I create a symlink with 'ln -s' (in Ubuntu 12.04, as root), it seems to be created with 777 permissions. Is that normal? Should I always do 'chmod 644' after doing 'ln -s'?
3
votes
1answer
734 views

OS X: alias vs. symlink

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

Using dropbox / symbolic link combo successfully

In the past I have kept some files on dropbox by copying them into my ~/Dropbox folder on Ubuntu. I don't want to move the original files into Dropbox synch folder or muck around with my directory ...
3
votes
1answer
1k views

How can I get Total Commander to recognize Cygwin symlinks?

I love Total Commander. I love Cygwin. But they are not always friends. One thing that bugs me, is the way symlinks work in Cygwin. Suppose I do this: $ ln -s my/path/to/nirvana budhism And then ...
3
votes
1answer
841 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 ...
3
votes
1answer
103 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 ...
3
votes
1answer
284 views

which version of xattr on OSX 10.5 will not follow symbolic links?

I need to edit extended attributes of directories that are symbolic links. xattr that comes on OSX 10.5 unfortunately writes to the link target instead of the link itself. I discovered a different ...
3
votes
2answers
717 views

Changing Windows public folder in batch script

I've installed Steam on an external hard drive so I can play games on different computers by just moving the drive around. Since save games are often saved in My Documents or AppData, but I want them ...
3
votes
2answers
2k views

Is it possible to create a symlink to a webdav directory on Windows?

I know I can map a webdav folder to a drive letter in Windows, but I need to map ~10 different webdav folders (different servers) and assigning a drive letter would be ugly. Is it somehow possible to ...
3
votes
1answer
866 views

Dropbox — set it up so it is sort of one-way read only?

I've set up DropBox as a backup for some of my files not in the Dropbox folder by using a symlink. But it occurs to me that if something gets messed up on Dropbox's end, then in theory it could make ...
3
votes
1answer
236 views

Updating the last write time for a symbolic link in Windows

Is it possible to update the last write time for a symbolic link in Windows? I can use the following powershell command to update the last write time of a directory, but it doesn't work for a ...
3
votes
1answer
518 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 ...
3
votes
0answers
3k views

Windows 7 NTFS Symbolic Link - Network Share Availability/Timeout

In Windows 7 and Windows Server 2008, is there a way to quickly detect if the target of a symbolic link is available? For example, a symbolic link is created to a remote share UNC using the ...
3
votes
1answer
171 views

Firefox keyboard shortcuts don't work when a form field is focused

When using Firefox in Linpus Linux (on an Acer One netbook) some hot keys don't work. Ctrl + w Alt + d However Ctrl + Tab Does still work. Edit: The version installed is 3.6.
3
votes
1answer
310 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 ...
2
votes
4answers
8k views

Why doesn't my symbolic link work?

I'm trying to better understand symbolic links... and not having very much luck. This is my actual shell output with username/host changed: username@host:~$ mkdir actual username@host:~$ mkdir proper ...
2
votes
4answers
571 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 ...
2
votes
2answers
1k views

cp -H vs cp -L (What is a “command-line” symbolic link?)

My OS states the following in the man page of cp: -H follow command-line symbolic links -L, --dereference always follow symbolic links I am having difficulty figuring out what ...
2
votes
2answers
4k 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 ...
2
votes
3answers
5k 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 ...
2
votes
1answer
2k views

Vim doesn't load symlinked .vimrc

I've got a symlinked .vimrc: simont@charmander ~/repositories/config-files [master *] ± $ ls -l ~/.vimrc lrwxr-xr-x 1 simont admin 6 9 May 17:14 /Users/simont/.vimrc -> .vimrc However, vim ...
2
votes
2answers
127 views

Do virus scanners scan symlinks?

If a virus scanner (like Microsoft Security Essentials, for example) comes across a symlink'd folder, will it follow through and scan that respective folder, be it on another drive (and how every many ...
2
votes
2answers
1k views

Using mklink in Windows7

I have two usb flash drives D:\ and H:\, inside they have some bin files 001.bin,002.bin on D 003.bin 004.bin on H I want to create a symbolic link in such a way that when a program accesses ...
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 ...
2
votes
1answer
3k views

removing symbol link with too many levels of symbolic links

I created a link by the command sudo ln -s /etc/Sublime\ Text/ /usr/bin/subl Now I am trying to remove it with sudo rm -r /usr/bin/subl/ But it is telling me rm: cannot remove ...
2
votes
2answers
1k views

Executable can't find correct files when called via symbolic link

I made a symbolic link to an executable with ln -s /usr/bin/mydir/myexec /usr/bin/myexec When I executed myexec in Bash, it does not load the proper files which are located in the original myexec's ...
2
votes
1answer
154 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 ...
2
votes
1answer
801 views

rsync functionality wanted - but i need symlinks, not copies

Is there a way to perform what rsync does (compiles many directories into a single directory) - But instead of copying files/sub-directories I need it to create a directory with symlinks that point ...
2
votes
2answers
331 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 ...
2
votes
2answers
114 views

How can I start an application via a Windows symlink

As a developer, I install and run many applications. To access these from the command-line, the usual mechanism to add the applications to the PATH environment variable. That's ok, but leads to a ...
2
votes
1answer
182 views

Starting programs from terminal then exiting terminal exits started programs?

I really was unsure how to phrase the question title. What I mean is that when I use the terminal to start a program, most of the time when the terminal is closed it also exits the programs started ...
2
votes
1answer
788 views

symlinks for admin users on Windows

On Windows you can create symlinks either if you start the programm, you want to create a symlink in (e.g. cmd), as Administrator. or if you give your user/usergroup the permission to create ...
2
votes
2answers
1k views

remote symbolic link / junction

Might be a pretty obvious one but have had some trouble finding solid answers. I have a directory on a windows network share containing different versions of an application. I would like to have a ...
2
votes
1answer
562 views

Can I mirror a folder's contents as it's changed in OSX?

TL;DR How can I mirror the contents of a Mac OSX directory, to another directory on my hard drive? I have a Dropbox folder that I use on all of my computers (a few Windows machines and a Macbook.) ...
2
votes
3answers
978 views

Detect all links that exists pointing to /tmp?

I want to find out which file links exist that point to my /tmp folder on Ubuntu. Background: I had a problem, that my /tmp folder privileges were changed by some accident to 755. The system wasn't ...
2
votes
1answer
77 views

Symbolic links when formatted

I have a symbolic link in C drive to a location on D drive. If I delete the C drive partition or format C drive, will it delete/destroy the files on D drive? I run windows 7
2
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 ...
2
votes
1answer
716 views

Is it possible to have shortcuts appear in the start menu search through a symbolic link?

I have a folder full of stuff that I sync across all my computers and virtual machines. It contains a whole load of stuff, including portable applications. On a new OS installation, I run a batch ...
2
votes
2answers
670 views

On Linux (CentOS 5), remembering when we've followed a symlink and being about to 'cd ..' out again

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd ..' to navigate back out of the symlink rather than just navigate to the parent ...