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)

109
votes
1answer
51k views

directory junction vs directory symbolic link?

MKLINK [[/D] | [/H] | [/J]] Link Target /D Creates a directory symbolic link. Default is a file symbolic link. /H Creates a hard link instead of a symbolic link. /J ...
35
votes
8answers
51k views

How do I create a link in Windows 7 home premium as a regular user?

I am a Linux guy and as such I am very lost when I try and do anything is Windows. I am trying to create the following link: mklink /d C:\backup\data \\myth\backup\data But I do not have sufficient ...
37
votes
3answers
5k views

What are the various link types in Windows? How do I create them?

Is it possible to link two files or folders without having a different extension under Windows? I'm looking for functionality equivalent to the soft and hard links in Unix.
28
votes
8answers
51k views

Create a symbolic link in the Mac OS X Finder

Is there a way to get the same functionality as the unix command ln -s in the Mac OS X Finder (OS 10.5)? I want to be able to create symbolic links while working in Finder windows without opening the ...
14
votes
7answers
14k 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.
11
votes
4answers
6k 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?
10
votes
2answers
2k views

Tab-completion with directories/links

I have this problem with tab-completion in terminal in both archlinux and ubuntu: I have a link which links to a directory named "something" in my home directory. Now when I open a terminal and want ...
2
votes
1answer
530 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 ...
97
votes
6answers
91k views

How can I delete a symbolic link?

I created a symlink using mklink. Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.
9
votes
2answers
7k views

Finding all symbolic and hard links to a file on UNIX

If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
8
votes
1answer
7k views

Permission to make symbolic links in Windows 7?

How can I grant a particular user the permission to create symlinks in Windows 7? I've searched through "Group Policy" and Google, but haven't found anything. On a side note, is there a way to ...
6
votes
5answers
7k views

Windows 7 / Symlinks - How do I copy a Symlink to a directory?

Is it possible to copy a Symlink to a directory in Windows 7. When I try to copy a symlink'd directory, it tries to deep copy the contents to the location.
2
votes
3answers
892 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 ...
1
vote
2answers
2k views

How to stop Windows 7 Built-in-Backup creating a System Image of too many drives?

I do not want to include (D:) drive in the image. I believe I know the cause of this, it's because I have some Directory Junctions and/or Symbolic Links. Any suggestions other than removing the ...
0
votes
2answers
301 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 ...
0
votes
0answers
324 views

Linking directories in c:\Windows on Windows 7 64bit

I bought a SSD to make it C:. As SSD size is pretty small, I'm trying to reduce the number of files in C:. After running WinDirStat, I found that 4.6G of space is used for c:\Windows\Installer. Is ...
7
votes
3answers
13k 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. ...
5
votes
2answers
4k views

Symbolic links and 7zip

I'm trying to compress a folder into a .7z archive. This folder contains symbolic links to some other stuff outside the folder (both directories and files). Apparently 7zip just archives the link ...
0
votes
1answer
266 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 ...
22
votes
3answers
12k views

What is the difference between Symbolic Link and Shortcut?

What is the difference between a Symbolic Link and a Shortcut?
14
votes
2answers
21k 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 ...
6
votes
2answers
25k views

How to find all soft links (symbolic links) in current directory?

Question relates to shell-scripting in bash. How to check with a script which files within the current directory are soft links? In case I have used the wrong term, when I say soft links, I am ...
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?
8
votes
4answers
8k views

How can I find all symlinks in Windows Vista or 7?

I'm looking for a way to search for all the symbolic links on a NTFS filesystem on Windows Vista or 7. It would be even better if I could specify a specific target to see if it has any symlinks ...
22
votes
3answers
17k views

How do I create a relative symbolic link in Linux?

I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?
6
votes
4answers
788 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. ...
2
votes
1answer
646 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 ...
7
votes
1answer
10k views

How do you make a symbolic link with a relative path using mklink?

This web page implies that it is possible to make symbolic links with relative paths using mklink. I have tried all sorts of ways to make relative symbolic links, but I always end up with an absolute ...
7
votes
2answers
16k views

Using symbolic link in Windows XP

Junction is a good symbolic link tool in XP. However, it's not so easy to use at first moment, ie. only can use command line interface; move/rename target file/folder; got to use 'junction -d ' to ...
4
votes
1answer
917 views

How do I figure out if a link is a symbolic link, a hard link, or a directory junction in Windows?

If I've created a directory link via mklink, how can I figure out if it was a symbolic link, a directory junction, or a hard link (ie whether I used /d, /j, or /h)?
0
votes
2answers
455 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 ...
13
votes
4answers
11k 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 ...
12
votes
4answers
5k views

Any tool to create symlinks in GUI [closed]

I can use mklink, but I am wondering are there any GUI tools available?
5
votes
5answers
17k views

Windows Server 2008 Create Symbolic Link, updated Security Policy still gives privilege error

Windows Server 2008, RC2. I am trying to create a symbolic/soft link using the mklink command: mklink /D LinkName TargetDir e.g. c:\temp\>mklink /D foo bar This works fine if I run the command ...
3
votes
1answer
150 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
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?
3
votes
3answers
424 views

How to know the level of a symlink in linux?

For example, if a symlink a -> b b -> c c -> d say, the symlink level of a is 3. Then, is there any utility to get this info? And, also I want to get the expansion detail of a symlink, ...
2
votes
3answers
309 views

Link My Documents folder to external SD Card

I have a laptop with 120GB SSD (limited space) and a 64GB SD card in the laptop. I have cloned my hard drive from a clean install of all the software installed. I would like to have the My Documents ...
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
4answers
2k views

Ubuntu - Create a link to a specified directory so I can easily change to that directory

Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go ...
4
votes
1answer
839 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, ...
4
votes
2answers
3k views

NTFS symlinks in linux

I have an NTFS formatted drive (from a previous windows installation) and it contains some symlinks (reparse points), For some reason, I can't do anything with these symlinks: I can't go to where ...
2
votes
1answer
2k views

Apache 2.4 don't follow all symlinks

I'm configuring my local Apache webserver after a fresh Kubuntu 14.04 install. Apache version is 2.4.7. I usually work with files located in a separated partition (/dev/sdb6 here), and create ...
2
votes
1answer
73 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

Can I move Windows 7 C:\Users more easily using 2 installs of Windows 7? [duplicate]

Possible Duplicate: Moving users folder on Windows Vista/Seven to another partition I am trying to move my Windows 7 C:\Users folder off of my 64GB SSD onto another drive (A partition on an ...
2
votes
4answers
493 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 ...
1
vote
0answers
57 views

Registry and Symbolic Links When Formatting

I had moved a folder to another drive and then established a symbolic link with mklink (in Windows 7). Now I want to format the original hard drive that I linked to. I understand that the data on the ...
1
vote
2answers
383 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 ...
1
vote
2answers
516 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 ...
0
votes
2answers
73 views

Utility to create symlinks for all executables in the Start Menu?

It's really annoying in Windows that if you want to run about any third-party program from the command line, you either have to use its full path or manually add its containing directory to PATH. Is ...