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
2answers
786 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
840 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
342 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
334 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
1k 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
3k 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
4k 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
936 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
742 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 ...
1
vote
1answer
120 views

Unix (Debian) autocomplete paths thru symlinks

By default, directory symlinks on unix systems are treated as files as far as the autocomplete feature goes. For example, having a directory symlink at /srv/link/, typing /srv/liTAB does only complete ...
1
vote
1answer
281 views

Use a symbolic link to create a new symbolic link

I have 2 directories (FOO, LALA). I create a symbolic link in one of them like this ln -s /etc/apache2 FOO/apache2 Afterwards I want to create another symlink, pointing to the same directory, but ...
5
votes
2answers
2k views

Symlink to current folder as absolute path without typing whole path

Symlinks are saved shortcuts for relative paths: ~/foo➤ ln -s . ~/bar/foo ~/foo➤ ls -l ~/bar total 8 lrwxr-xr-x 1 me me 1B 15 May 14:38 foo -> . The file ~/bar/foo is a symlink to bars ...
0
votes
1answer
156 views

.htaccess speed vs. symlink or DNS setting I don't know about?

This is probably a very simple question, but there's so much content out there that it was hard to google the correct problem I have. I have 3 domains that I all want to go the very same place, ...
1
vote
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 ...
1
vote
1answer
406 views

Make Bash's PS1 show original directory name and not symlink?

I currently have PS1='\W' but when in a symbolic link'd directory, the prompt shows the symlink name, how can I make PS1 to show the original directory name?
2
votes
1answer
70 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
0
votes
2answers
771 views

Virtual machine sharing setup with Windows host and *nix guest that allows symlinks?

I'm using VirtualBox (and have tried VMWare) on a Windows 7 host with an Ubuntu server guest. I've set up folder sharing in VirtualBox so that my Ubuntu server home dir is a mount of my Windows 7 home ...
1
vote
2answers
793 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 ...
1
vote
2answers
47 views

Is it safe to replace a folder with a partition mounted to that folder n Windows 7?

I know most programs won't notice the difference, but is it true for e.g. virtualization software like VMware? I'll give you an example: Let's say my virtual machines are in C:\_VM\ My C: space ...
1
vote
2answers
833 views

Windows hard link taking up space?

On my computer I create a hard link mklink /h git-link.exe git.exe Hardlink created for git-link.exe <<===>> git.exe Now they both take up space 2012-04-17 12:14 AM 6,905,039 ...
0
votes
2answers
449 views

Extracting uncommon components from Windows installed on SSD

I have a 50gb SSD harddisk with windows 7 installed on it. I did this for performance for my windows installation and the related applications (Visual Studio, etc). In a projects folder I also store ...
0
votes
1answer
70 views

How can I mount/mirror/symlink individual web-published files onto my hard drive?

Basically I want to download a file, but then have it automatically update if the web version changes. I'm expecting the web version to have a static URL. I'd like to be able to move the file ...
0
votes
1answer
722 views

Shadow copy referencing invalid volume from symboliclink when using TrueCrypt

I recently replaced my motherboard after the last one failed (was shorting and causing random reboots). I'm sure this was not healthy for the machine, and that a clean install would do wonders, but ...
1
vote
2answers
236 views

Utility for creating symlink to directory tree

I remember that there is an utility for GNU/Linux, that given some directory, builds the same directory hierarchy, but with all regular files replaced by symlinks to the corresponding ones. I can't ...
1
vote
2answers
337 views

symbolic link to desktop in windows

I'm looking to make a symbolic link to my Desktop in windows. The reason I want this is that I've been doing a lot of web development on my local machine and I'm looking for a shortcut that I can type ...
2
votes
1answer
480 views

Generate a list of files by piping output of find command into another find command?

I need to generate a list of files for use in a shell script. The list should be all files (in a specified directory) that are hardlinked. I want to replace the hardlinks with symlinks. (Obviously, ...
0
votes
1answer
251 views

How to improve this bash shell script for turning hardlinks into symlinks?

This shell script is mostly the work of other people. It has gone through several iterations, and I have tweaked it slightly while also trying to fully understand how it works. I think I understand it ...
1
vote
1answer
69 views

Is it possible to fork a symlink?

I have my configuration file (e.g. .zshrc) put into an encfs container. When I log into the system the container is not yet mounted, hence the the symlink is dangling then. Is there a way to let the ...
5
votes
3answers
11k views

Why can't I make a symbolic link (mklink) even when I'm an administrator

When I run mklink /D "C:\Users\bwilliams\AppData\Roaming\Sublime Text 2" "C:\Users\bwilliams\Dropbox\Sublime Text", I get this error `You do not have sufficient privilege to perform this operation. ...
6
votes
1answer
1k views

brew link jpeg issues

I am trying to install opencv on Mac OSX Lion. brew install opencv I get the following error (and a few other similar ones) Error: The linking step did not complete successfully The formula built, ...
1
vote
2answers
224 views

Sym-linking windows with linux

Is it possible to make a sym-link in linux that can be used by windows? I have a dual boot system of Ubuntu 10.10 and Windows 7 and I want to move my AppData folder to another drive. I was planning on ...
3
votes
1answer
211 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 ...
4
votes
3answers
1k views

Are world-readable/writable/executable links in /usr/bin security holes?

% ls -l /usr/bin/edit lrwxrwxrwx 1 root root 3 Jan 10 05:54 /usr/bin/edit -> vim* This seems to ...
2
votes
1answer
812 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 ...
1
vote
3answers
95 views

Linux: Shared and mounted directories

Fairly-new to Linux and am trying to see if I can start getting a little clever. I have a server that contains files that I'd like to have "locally" accessible on other servers directly under the / ...
1
vote
2answers
135 views

Is there something like hardlinks that split into separate files on modifications?

Let's say files orig and copy are huge but identical files. In order to save storage space one could therefore either make copy a soft-link to orig or hard-link both files to the same data. orig must ...
2
votes
5answers
981 views

Does ln -s require you to be in a certain directory?

I want to create a simple symlink to a file. It works perfectly if I run the command from inside the directory where I want the symlink to be created: /path/to/link $ ln -s /path/to/file . But if ...
2
votes
3answers
3k views

Following a remote symbolic link via Windows Shares

In Windows 7 X64 I have a directory C:\shares\ Which contains 2 shared folders, each of these contains a couple of hundred symlinks, mapping the contents of 4 folders spread across 4 drives. So ...
0
votes
1answer
76 views

Remove a folder inside a symlink

Having a symlink: ln -s /var/www /media/Disk2/dropbox/www How can I remove a folder from the symlink located at /media/Disk2/dropbox/www/test without afecting the main folder?
20
votes
3answers
9k views

Does rm -f follow symbolic links?

I have a directory like this: $ ls -l total 899166 drwxr-xr-x 12 me scicomp 324 Jan 24 13:47 data -rw-r--r-- 1 me scicomp 84188 Jan 24 13:47 lod-thin-1.000000-0.010000-0.030000.rda ...
2
votes
1answer
2k 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 ...
2
votes
2answers
925 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
128 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 ...
0
votes
1answer
1k 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
88 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 ...