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)

2
votes
1answer
713 views

Working symlink isn't accessable through explorer Windows 8

I made a symlink to an folder with mklink on w8x64 between two NTFS partitions on the same disk. All programs think it's a valid folder, but Windows explorer doesn't seem to get this, and displays a ...
1
vote
0answers
225 views

Partitions, symlinks, mounting as folders and performance

I'm going to have a 128-GB SSD which will contain Windows 8 and most applications, and a 1-TB hard drive which will contain most of the rest (large games, documents, select frequently overwritten ...
1
vote
1answer
475 views

Symlinking some of my drive to another, AND syncing structures (Link Shell Extension?)

I'm going to install a SSD and a hard drive on my computer soon. It's a 128 GB SSD, and a 1 TB hard drive. I'm going to use the SSD as follows: It will store the OS and most applications. As for the ...
2
votes
1answer
865 views

Convert Linux symlinks to Windows symlinks

I've noticed that Linux symlinks don't work in Windows, and vice-versa. Is there any way to convert Linux symlinks to Windows symlinks? Specifically, I want to convert relative Linux symlinks to ...
0
votes
1answer
752 views

Symbolic link for log files on AIX

I have an AIX 5.3 and I need to point the /var/mylogs/trace directory at another /mydir/temp When I use the symbolic link syntax; ln -s /mydir/temp /var/mylogs/trace In /var/mylogs/trace I get a ...
0
votes
3answers
79 views

directory in /proc/sys/net/ipv4/config have no hard links?

Why the directories inside /proc/sys/net/ipv4/config have no hard links? ls -l /proc/sys/net/ipv4/conf total 0 dr-xr-xr-x 0 root root 0 Dec 31 08:27 all dr-xr-xr-x 0 root root 0 Dec 31 08:27 default ...
1
vote
1answer
93 views

symbolic link issue in windows

I'trying to make a symbolic link for dropbox folder which will refer to music directory, so the command I entered was the following: mklink \D d:\User\Dropbox d:\User\My Music. When I tried to enter ...
0
votes
1answer
818 views

How do I backup symbolic links?

I created a ton of symbolic links using ln -s ../folder/subfolder mylinkname. How can I back this folder of "links" up so I could restore it at a later date? A compressed file or something similar ...
2
votes
3answers
134 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 ...
4
votes
2answers
2k views

Give Access to a Subdirectory Without Giving Access to Parent Directories

I have a scenario involving a Windows file server where the "owner" wants to dole out permissions to a group of users of the following sort: \\server\dir1\dir2\dir3: Read & Execute and Write ...
1
vote
2answers
1k views

Can Chrome open a local file with relative path set via link?

Lets say the following windows file-structure is given: ./ ./portable_chrome.exe ./index.html ./load_index.lnk Is there a way to open the index.html with portable_chrome.exe via load_index.lnk with ...
0
votes
1answer
372 views

How to create drive symlink with colon for NTFS-3G symlinks in “.NTFS-3G” folder

The official documentation of NTFS-3G states that you need to create a mapping for drive-spanning NTFS symlinks because it obviously can't map Windows drives to Linux mount points: Another option ...
1
vote
1answer
362 views

How can I create persistent symlinks to my other drive?

When I create soft links within my /home folder to my other hdd (sdb) they no longer work when I restart my system. Do I have to mount my hdd to say /mnt/sdb on boot?
0
votes
4answers
4k 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 ...
1
vote
1answer
4k 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
693 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 ...
1
vote
1answer
536 views

Symlink path can be followed manually, but `cd` returns Permission denied

I am trying to access the directory /usr/software/test/agnostic. There are several symlinks involved in this path. As you can see by the below transcript, I am unable to cd directly to the path, but I ...
4
votes
1answer
1k views

Checking where a symbolic link points at in Windows 7

In Windows 7, how can I check if a file is a symbolic link or not, if a folder is a junction or not, and how can I check where they are pointing at (in case they are symlink/junction). Both in ...
0
votes
1answer
31 views

Cascade file name changes on links in Windows 7

When making a link in Windows 7, is there a way to have name changes cascade to all links of the file? So if I have a file called: Interest.PDF and make a few links in other folders, but then I later ...
4
votes
2answers
68 views

How do I get cd to switch to the full path when following symbolic links?

How can I get the shell to understand the full path after following a symbolic link. In the example below I'd like the first "pwd" command to report "/Users/sholden/Projects/PS1/examples", and the "cd ...
1
vote
2answers
867 views

Moving the home directory to a new drive

I have no more space left on my hard-drive. So I bought a new one and I would like this hard-drive to be the home folder. I thought of copying all the stuff I have on the home folder to the ...
0
votes
1answer
509 views

Can't remove/delete symlink

I have tried to create a symlink and it threw this error: ln: accessing `.test': Permission denied Now I can't unlink or delete the symlink file. Tried Googling for help but could not find a ...
0
votes
1answer
129 views

Symlink in Windows 7 fails, although user is an admin

I am logged in Windows 7 (Home Premium) as user which is an administrator. When I open cmd.exe, mklink foo bar says: You do not have sufficient priviledge to perform this operation. I know I can ...
0
votes
1answer
338 views

Conditionally create symbolic link by filesize using find exec ubuntu 10.04

I have an interesting problem. I'm trying to create symbolic links in a single folder, for all files in a directory which are larger than a specified size. For clarification, here is an example: ...
0
votes
1answer
606 views

How can I set my desktop background folder to a shortcut?

I have a shortcut in my Pictures folder that points to a folder in my Dropbox containing my desktop backgrounds. I would like for my desktop backgrounds to cycle through images in this folder. But ...
1
vote
1answer
2k views

Unix Copy (cp) without Symbolic Links

I want to copy my files but convert the symbolic links to hard links (ie. the actual file). How can I do this? Here's my code (that isn't working): cp -RL ${FROM_DIR} ${TO_DIR} Note: this is for ...
8
votes
2answers
4k views

View a list of symbolic links on system?

Is there a way to see a list of all the symbolic links that are active on a Windows machine?
0
votes
1answer
2k views

403 Forbidden on OS X with symbolic link

I just upgraded to OS X 10.8 Mountain Lion to find that my web server setup was ruined by the upgrade. I managed to get PHP and Apache back up and running, but I still do not have my old setup from ...
1
vote
2answers
713 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
2answers
190 views

How to remove a duplicate symbolic link

I accidentally created a link to a folder in the same directory with the same name as the folder, and I'm not sure how to safely remove it without removing the actual folder. # ls -l total 4 ...
0
votes
1answer
90 views

How do I find all the symbolic links to a master file? [duplicate]

Possible Duplicate: How can I find out if a symbolic link exists, that points to /tmp? I have an mpeg file that has been linked to in a number of directories. I need to replace all those ...
1
vote
0answers
100 views

Linux mount part of filesystem as template

Here's what I'd like to do: I have some directories that I need to have separate copies of, but these directories are 2+ GB so simply copying the directory several times seems inefficient. 90% of ...
2
votes
1answer
444 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.) ...
3
votes
1answer
1k 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 ...
1
vote
1answer
2k 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
3answers
834 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 ...
3
votes
1answer
100 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 ...
-2
votes
1answer
19 views

I have multiple installs of wordpress, all using the same plugins but in different locations. how can i use a symlink link to avoid duplication?

I have multiple installations of wordpress on my server, all using the same plugins but in different locations. i.e i have /home/site1/wp-content/plugins/plugin1 ...
0
votes
1answer
106 views

Symlink in ec2 /var/www/html/

I'm having problems with EC2 in the Amazon Cloud. My steps: I have a symlink to the S3 in /var/www/html I update my code and upload the code with git aws.push in my environment (var/www/html) ...
1
vote
0answers
159 views

How do I search/replace symbolic links?

I've been having this issue for a long time, and I don't want to reinstall the whole system, yet. Now there's an app that runs on Java, and it doesn't even open. The logs says some cocoa files were ...
1
vote
2answers
390 views

Is there a method to find how many soft links point to certain file?

SSH is a soft link (symbolic link or symlink) to dropbear. I want to know how many files are soft linked to dropbear. Is there any method to find how many soft links point to certain file? It would ...
0
votes
1answer
247 views

Create a Symbolic link to the merged contents of 3 folders

I have 3 folders with large amount of data in each which has to be maintained seperately. Can I create a sym link or shortcut.in windows which should show me the merged contents of the 3 folders. I am ...
4
votes
1answer
735 views

Symlink to .vimrc on windows makes file readonly upon write. Why?

I've put my .vimrc file in a central location (dropbox folder, also a hg repository). Under Windows 7, I've symlinked to it from my home folder (strangely enough I had to do it as an administrator, ...
1
vote
1answer
3k views

Samba Linux shares — Why won't windows machines display/follow symbolic links?

I set up a generally working samba server on a Linux machine like this: useradd -g users netshareuser passwd netshareuser smbpasswd -a netshareuser (passwords are the same) mkdir /net/share ...
0
votes
1answer
110 views

How do I automate removing a symlink and adding a new one

Basically I want to create a quick set of commands so that I can type into the terminal and have it do this: cd /path/to/folder/of/symlink sudo rm -f symlink sudo ln -s /new/path/of/symlink cd ...
1
vote
0answers
173 views

shortcut to recursively copying a directory preserving modes, ownerships and hard and symbolic links

I am using the following to recursively copy a directory while preserving modes, permissions as well as hard and symbolic links: cp -pr --preserve=links dir-a dir-b However I have the following ...
1
vote
1answer
213 views

bash :: visually distinguishing hard links on ls

I am using bash shell in Ubuntu precise. I am partial to symbolic links in bash even when a hard link would make more sense because they can be more easily identified with an ls. In contrast, for ...
1
vote
3answers
772 views

Win7 System folder contains infinitely looping SYSTEM(!) directory

My Windows 7 Enterprise computer has been crashing fairly frequently recently, so I decided to boot up in safe mode and run the TrendMicro client I have installed. It froze about 10 minutes into the ...
3
votes
1answer
751 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
718 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'?