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
757 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
635 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
2k 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
69 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
1k 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
601 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
137 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
395 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
623 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 ...
9
votes
2answers
6k 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
916 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
213 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
99 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
108 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
493 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
890 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
102 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
110 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
162 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
453 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
2answers
300 views

Create a Symbolic link to the merged contents of 3 folders [duplicate]

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
835 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
119 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
185 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
242 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
873 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
799 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
871 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'?
0
votes
0answers
130 views

Symbolic linkage or in-sync folder replication on Windows?

I have an application—actually a web-framework+web-server—which requires its folders—including the application I'm hosting—to be in a child directory; e.g., in: \htdocs. The application/project I'm ...
1
vote
0answers
214 views

Permissions within Windows symlink to a Samba share

I have a microserver running Ubuntu from which I have created some Samba shared folders which I access from my PC and laptop running Windows 7. I have created some symlinks (using mklink /d) on the ...
2
votes
2answers
916 views

How to copy relative symbolic links and keep targets

My situation has 2 directories: /blah/d01 and /blah/d02 $ls -l /blah/d01 a/ b/ c/ fa -> a fb -> b fc -> c and I want to copy fa, fb, fc to /blah/d02, and as a result: $ls -l /blah/d02 fa ...
1
vote
1answer
868 views

Creating usr/local/bin symlinks for things in usr/bin good idea?

I have a Linux production server and development machine that runs OSX. Stuff that is in usr/local/bin on development is installed into usr/bin on Linux. That creates some problems and I always have ...
1
vote
2answers
382 views

Shared home folders between operating systems

After my hard drive calved yet again in my MacBook Pro, I decided to re-do my dual booting. My goal is to triple boot, with OSX 10.6.8 (installed), Windows 7 Home Premium and a flavour of Linux ...
2
votes
1answer
389 views

Directory of dereferenced symbolic link?

In shell script, how can I dereference a symbolic link and get the directory of the file it links to?
1
vote
2answers
2k views

Access is denied on mklink

I am trying to get a symlink working over a network drive. I have already tried suggestions on questions already asked, such as running as administrator and checking if the directory already exists. ...
1
vote
2answers
1k views

can i create a symlink from an ec2 disk to S3 bucket?

Is it possible to create a symlink from a file on the local disk of a windows machine in ec2 so that it is actually stored in an S3 bucket? MSMQ wants to write our queue to a local disk and this ...
6
votes
2answers
5k views

How do I change target of symlink in windows

Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with: ln -f
0
votes
3answers
5k views

How to soft link/ Hard link a folder to a remote server's folder

I'm new to modifying links as well as administering Linux, Is it possible to soft link a specific folder to a remote server's folder? (I'm not sure what to use hardlinks/symlinks/etc.) Sorry for ...
1
vote
1answer
1k views

FTP Error 550 when trying to access a folder via symbolic link

I'm configuring svftp on a linux machine. At the moment local users can login via ftp and they will see listened their home dir. They have write acces to it. No I want the users to write in de ...
2
votes
1answer
902 views

Adobe Reader not accessing Symbolic Link over network drive

My main system is running Windows 7. I have a mapped network drive (call it z:) that is hosted on a Windows XP machine (not sure if this matters at all). I have created a Symbolic link (call it SL, ...
1
vote
0answers
167 views

OS X Lion : Remove some users folders an replace them by a symbolic link

I have copied my music, movies and pictures folders to another drive and created symbolic links in my user folder that point the new location. The links do work, but I cannot remove the original ...
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 ...
1
vote
1answer
2k views

Symlink all files in a Folder to a new Folder

Ideally what I am seeking is a way to rename all my anime keeping original files intact without using extra data space The solution I can think of is creating a duplicate folder path to another ...