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)

6
votes
1answer
4k views

When using Time Machine, does it follow Symbolic Links in mac?

I have a mac with a 250gb hd. My iTunes library is in an external hard disk, 500gb. I have Symbolic Links in my home music folder pointing to the files and the xml library (I dont let iTunes organize ...
2
votes
3answers
914 views

How much space do NTFS hardlinks/symlinks occupy?

Well, I guess it must be something proportional to the original filename plus the new filename for symlinks, and only the new filename for hardlinks, but how does this affect the disk space exactly? I ...
0
votes
2answers
410 views

Create a softlink for a file on two servers

I want to create a softlink for a file between two servers. The file is present on server1 and a softlink should be created for it on server2.
0
votes
1answer
156 views

Symlinks not working when created

It is a terrible title, but I don't know how else to describe it (this is probably something very simple). I'm creating a symlink to a sub-directory one directory up: ln -s ../src/django-countries ...
2
votes
1answer
718 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 ...
1
vote
3answers
852 views

What can I not symlink/mklink in the windows folder (i.e. prevent booting)

I have a huge project. I got the scripting down. The script dumps to a .txt file a list of all files under or over a certain size. I then move the files to another hd (depending on how I setup my ...
3
votes
1answer
769 views

In OS X how could I create symlinks to everything within a given directory (rather than the directory itself)?

Say I have a bunch of config files that I'd like to store elsewhere, but if I move them and then symlink the directory, the application sees it as a symlink and won't use the contained files. Instead ...
23
votes
3answers
15k views

What is the difference between Symbolic Link and Shortcut?

What is the difference between a Symbolic Link and a Shortcut?
2
votes
1answer
275 views

Can one symlink to a URL? [closed]

I have a CSS file that I'd like to symlink to an external CSS file. The external CSS file is only available as a URL - it's not on my filesystem. Is this possible? I'm running OSX.
0
votes
2answers
483 views

Symlink to Files & Dirs in Dropbox

I just installed Dropbox on my Mac, so now I have this Dropbox folder in my home directory. I only have the free plan (2 GB), so I can't just throw all my files & directories in there. I ...
2
votes
1answer
1k views

Move files from EXT to NTFS preserving symbolic links

When I try to move lots of files from an EXT partition to an NTFS partition in Ubuntu, it complains about "Filesystem does not support symbolic links", and fails. Of course NTFS does support symbolic ...
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.
2
votes
1answer
212 views

Is it inefficient to have symbolic links to symbolic links?

We're setting up a series of Makefiles where we want to have a project-level include directory that will have symbolic links to sub-project-level include files. Many sub-project developers have ...
1
vote
2answers
2k views

Use symlink to provide access to a specific file under a restricted directory

My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can ...
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 ...
15
votes
2answers
22k views

Does Windows7 support symbolic links (folder 'shortcuts')?

I see W7 seems to have more support for virtual folders, that don't correspond to actual directories on the disk. Does it also support proper symbolic links so I can e.g create a symbolic link ...
2
votes
1answer
803 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 ...
1
vote
1answer
2k views

mac os x, find all symbolic links that point to files on a different volume

In my ~ dir, I have some symlinks that point to "/Volumes/Macintosh HD 2/..." and I want to find them all recursively. A look at the man page for 'find' says the '-lname' argument will search the ...
1
vote
3answers
747 views

Move to the directory of a symbolic link

On a UNIX machine I in my current directory I create a symbolic link: > ln -s public_html/code/index.html Which creates a file locally named index.html. How can cd to the directory ...
1
vote
1answer
3k views

Equivalent for Windows 7 “mklink” on OS X?

Is there a feature on OS X that does the same as mklink under Windows 7? It can create symbolic links and hard links. I have just read about this tool to have Dropbox sync an application folder by ...
1
vote
1answer
7k views

Ubuntu make symbolic link between new folder in Home to existing folder

To the point. I have Ubuntu Maverick running on my Lenovo G450. Before, it was Windows 7. All my data are inside another partition, its NTFS. FSTAB line to mount that partition : /dev/sda5 /data ...
6
votes
4answers
12k views

Sharing an external hard drive in Ubuntu using Samba

/media/MYDISK is where my hard drive is mounted automatically. I created a symlink using: ln -s /media/MYDISK /home/camilo/MYDISK chmod 777 /home/camilo/MYDISK I'm setting up smb.conf like this: ...
0
votes
1answer
509 views

Symbolic Links Between User Accounts

I have been using a cron job to duplicate a folder into another users account every day and someone suggested using symbolic links instead although I cannot get them to work. In summary user GAMER ...
1
vote
0answers
641 views

vim does not preserve symlink over sshfs

I'm having some trouble with symlinks and sshfs. I use the '-o follow_symlinks' option to follow symlinks on the server side, but whenever I edit a symlinked file on the client side with vim, a copy ...
0
votes
1answer
381 views

Mount drive when symbolic link is accessed

I have a MacBook Pro with two internal drives: an SSD and a slow HDD. On the HDD I keep heavy, rarely accessed files like movies, photos, etc. These are symlinked from the SSD, so applications like ...
2
votes
0answers
463 views

Cannot change permissions in symlinked dropbox directory in Ubuntu 10.10

Title pretty much says it all, but here's what I'm doing... ls -l produces this... drwx------ 1 brian brian 4096 2010-12-28 14:19 foldername -rw------- 1 brian brian 0 2010-12-28 15:54 index.html ...
2
votes
1answer
296 views

Differentiate between folders and symbolic links on Windows

I created some symbolic links for some folders when I had Windows Server 2008 R2 installed. Now I have formatted and installed Windows 7. The symlinks are still there but I don't know how to ...
2
votes
1answer
788 views

Symbolic link modification for HP unix

I'm trying to modify the following in order to rename some symbolic links: find /home/user/public_html/qa/ -type l \ -lname '/home/user/public_html/dev/*' -printf \ 'ln -nsf $(readlink %p|sed ...
1
vote
3answers
3k views

Zipping files in OSX, want to 'resolve' symbolic links

I have a number of directories, they're all demos of web scripts I have created, the important fact is they all share resources. So I have created a global resources directory and symbolically linked ...
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 ...
1
vote
2answers
546 views

symbolic links based on user's id

I'm wondering how to create in linux something like symbolic link, that wil point to different directories for different users seeing it. I was searching for long time for itand found something called ...
18
votes
4answers
15k views

How to copy symlinks to target as normal folders

i have a folder with symlinks: marek@marek$ ls -al /usr/share/solr/ razem 36 drwxr-xr-x 5 root root 4096 2010-11-30 08:25 . drwxr-xr-x 358 root root 12288 2010-11-26 12:25 .. drwxr-xr-x 3 root ...
4
votes
4answers
9k views

Is there anything like a link or shared mount point for FAT32 folders in Linux/Android?

I often want the same files to be accessed by different apps on my Android phone, but the apps look in different folders. Is there a way to make two different folder paths on a FAT SD card point to ...
2
votes
1answer
1k views

Perforce and how to create symbolic links on samba share in Windows

I am using Perforce and have Workspace of project under Linux. The project contains many symbolic links. I have no problems with Perforce and the symbolic links as long as I work on Linux. However, if ...
10
votes
3answers
32k views

Creating a symbolic link to mapped network drive in Windows

I am having an issue creating a symbolic link on Windows 7 Ultimate. I want to map a folder from a mapped network drive into My Documents. mklink /D "C:\Users\Vegard\Documents\Virtual Machines" ...
5
votes
5answers
751 views

How to see the end of a long chain of symbolic links

Suppose I have a link that points to another link that points to another link, etc. way down the line. I'm not sure how many levels of links there are. What's the slick command line way to see the ...
2
votes
1answer
751 views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
19
votes
7answers
19k views

Straightforward, easy way to create symbolic links on Windows?

I need something supported at least on Windows XP and not requiring any new user downloads hopefully.
2
votes
1answer
2k views

Windows 7 on SSD using Symlinks

for my new desktop computer i want to buy a (smaller) SSD drive and put Windows 7 64bit on the SSD and only the most used stuff. And a second (bigger) normal HDD on which everything else goes. What is ...
2
votes
1answer
564 views

The fastest way for relinking a directory

I use a Gentoo Linux, and I'm currently moving my /usr/portage (portage's database, containing thousands of small ebuild files), /var/tmp/portage (portage's compiling directory), and /var/tmp/ccache ...
3
votes
3answers
2k views

Check if two paths are pointing to the same file

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a ...
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 ...
6
votes
4answers
833 views

VIM destroys symbolic links under Windows

It seems that when working with a file in VIM it primarily uses a backup version of the file then overwrites the original on save. This is a problem when using symbolic links under Windows (e.g. ...
0
votes
2answers
403 views

Can I link log files to my web directory var/www?

Can I link log files to my web directory var/www ? so I have var/www/logs And then remove reading permission to others in my unix link preferences ? By the way can I change links preferences ?
9
votes
2answers
2k views

When would one prefer a Junction Point (Directory Hard Link) over a symbolic link?

Technically, I get the difference between the two; this is just a usage question. In particular, I want to move some folders off of a smaller hard drive and onto a larger one, but I need to use some ...
1
vote
2answers
1k views

Linux $PATH variables, soft links, and Command Not Found

I am having problems with symbolic links and the $PATH variable. I have a directory: # /usr/rulerX/square where /usr/rulerX/square is a symbolic link such that: # ls -la square --> ...
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 ...
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 ...
12
votes
4answers
7k views

Does window have the ln -s or equivalent?

I need to link a file to c:\Windows\System32\drivers\etc\hosts. How can I do that with windows? Is there a soft link such as 'ln -s' or equivalent in Windows?
4
votes
1answer
1k views

what is the difference between a symlink , junction , hard link and so on? [duplicate]

Possible Duplicate: What is the difference between NTFS hard links and directory junctions? well just got a litlle confused about all of them. so any explanation?