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)

1
vote
2answers
2k views

Symbolic link or Junction to a Networked Samba Share

I have a samba share mounted as a network drive. However, I can't make any sort of symbolic link or junction point to it. Is this possible? When I try the following command: mklink /D X:\Samba\dir ...
1
vote
1answer
18 views

Linux/Bash: Create relative soft links to files in directory tree?

I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir. That could be ...
1
vote
0answers
14 views

What archivers support symlinks on Windows? [on hold]

I'd like to back up and restore directory trees that include symlinks created with "mklink /d" on Windows 7. Are there any free & open source archivers that support windows symlinks? winrar 5.1 ...
6
votes
2answers
193 views

How to make a symlinked folder appear as a normal folder

I have two Dart applications I need to dockerize. These two apps use a shared source directory. Because Docker prevents adding files from folders outside the context directory (project/app1) I can't ...
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?
3
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 ...
0
votes
1answer
15 views

Why has my symlink stopped working? - OS X

A while ago I noticed my symlinks in OS X Mavericks weren't doing anything. On closer inspection, Finder was showing them as flat files. If I opened them in a text editor I simply saw a relative path ...
0
votes
1answer
42 views

Is it possible to make a relative symbolic link that is relative to the link itself(Windows)

Is it possible to make a relative symbolic link that is relative to the link itself. Only the Path to the link itself is known. Anything else can change D:\Photos\Subject\realfile_XX.jpg ...
1
vote
1answer
38 views

How can I create symbolic links in Windows 8.1 without an admin command prompt?

I am hoping that someone can correct me where I'm going wrong when trying to create a symbolic link in Windows 8.1 without having to run cmd.exe as administrator. Whenever I try to create a symlink ...
0
votes
0answers
26 views

Symbolic Links to a subfolder

Problem This is my directory structure F:\dir\lev1\lev2\lev3 Consider there are files at every level of this directory structure. I'd like to create a Symbolic Link in F:\dir to the directory ...
1
vote
2answers
38 views

Can't get symbolic link creation permissions to work under windows

I am trying to grant my user the privileges to create symbolic links. I ran secpol.msc and navigated to Local policies -> User rights assignment -> Create symbolic links. I have added my user's ...
3
votes
2answers
675 views

Changing Windows public folder in batch script

I've installed Steam on an external hard drive so I can play games on different computers by just moving the drive around. Since save games are often saved in My Documents or AppData, but I want them ...
1
vote
1answer
891 views

Ubuntu symbolic link the content of a folder

I have two folders such as nonserved/ folder1/ folder2/ and a served folder via Apache media/ js/ css/ img/ In the end, I want to include/append contents of /nonserved to ...
104
votes
1answer
49k 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 ...
2
votes
2answers
302 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 ...
0
votes
1answer
27 views

Restore a file overwritten with ln -nfs?

I accidentially "deleted" a file by doing this: ln -nfs /path/to/file In my understanding the data itsself should still be there. I also stopped working on the machine as I did this shit... Is it ...
2
votes
3answers
4k views

Batch Update Symbolic Links Recursively

I have a web app that has a bunch of symbolic links in subdirectories throughout it. I need to move the app to another directory structure, and I need to update all the symlinks to point to the new ...
0
votes
0answers
24 views

permission differences from mac finder vs terminal ssh

I am hoping that some of you Super Users can help me. I am working in an unix environment. /g/typas/Manuel>uname -a Linux submaster 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 ...
0
votes
0answers
27 views

Handling symbolic links in c include path

I'm compiling some software that uses the socket.h library. Make fails with this: In file included from /usr/include/sys/socket.h:38:0, from com/etsy/net/UnixDomainSocket.c:9: ...
0
votes
2answers
54 views

ls -lrt showing file which is not present

When I do ls -lart in my current working directory it shows lrwxrwxrwx 1 root 10004 36 Dec 16 17:59 index.html ->/home/moviebeam/assets/ui/index.html But I cannot see contents of the ...
3
votes
1answer
92 views

Fun with symbolic links and `notepad.exe` (replacing default notepad application in Windows 7)

I'd like to change my default notepad program from notepad2 to notepad++ (but my question is more complicated than just that so please don't stop reading!) When making the change from notepad to ...
0
votes
0answers
9 views

Do “child object” ACL changes through Explorer traverse junctions/symlinks?

Does the option to.. "Replace all child object permission entries with inheritable permission entries from this object" ..traverse through symbolic links and junctions? I'm trying to debug ...
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 ...
10
votes
3answers
6k views

Executing symbolic link to exe - “The specified path does not exist”

When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check ...
0
votes
2answers
333 views

Hide files in unix without changing their name (adding the dot) so that scripts that use them still work [duplicate]

Short version: I want to be able to prevent certain files from appearing in the output of ls, without adding the dot, and thus changing their names. Long version: Recently, I moved a bunch of scripts ...
0
votes
2answers
32 views

Create symlinks from files in new folder, but not folders

I would like to create symlinks from all files and files in the sub-folders in a new folder. So, it makes a new folder, and in this new folder it mirrors the actual folder structure from the source ...
0
votes
2answers
294 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
10 views

Can I create link that points to many folders [duplicate]

I'm under Windows 7, and I'd like to know if it's possible to create a virtual folder that points to many other folders, effectively listing all their contents as if being in a single directory. ...
0
votes
2answers
35 views

Invisible file with a specific real name - can't list it, delete it or create new file of that name

I seem to have an 'invisible' folder that I can't see or delete, but is blocking a 'real' file from being created. I'm in a vagrant box (Ubuntu 14) I was trying to install ...
0
votes
0answers
14 views

Using Junctions (or directory link) to mirror profile for two different domains?

I have a weird setup at work. My computer is linked to two domains, one's the primary domain which I'm logged into 99.9% of the time. The other domain is primarily for SQL Server management (and ...
0
votes
1answer
45 views

How to view all the Symbolic links,Junction points,Hard links in a Folder using dir?

The command dir /a displays a list of all the files,folders in a given location. But it displays the type for Junction Points as well as Symbolic Links to Folders. Is there any command which will ...
0
votes
1answer
45 views

moving symlinks to another drive

i have a list of symlinks to commonly used files by me in a directory located on my flash drive h:\ referencing to files in c:\ drive i want to move the contents of my h:\ drive into c:\, and when i ...
0
votes
0answers
22 views

Replace Symlinks with Real File in Windows

So I recently began using Kickstrap for a new project, and I've discovered that while Kickstrap successfully compiles and puts all the files in the right place, any files that end up identical are ...
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 ...
0
votes
1answer
121 views

Homebrew install gdb, symlink error with binutils

I'm trying to install GDB via Homebrew on OSX Mavericks via the command brew install homebrew/dupes/gdb. This error message pops up during install: gdb requires special privileges to access Mach ...
36
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.
0
votes
1answer
234 views

apache 2.4 permissions issues (forbidden)

This is driving me nuts! Just installed Ubuntu 14.04 with Apache 2.4.7. I've found a ton of posts on this issue but nothing seems to work. I do have ACLs enabled, but neither -b (removing entry) or ...
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 ...
0
votes
0answers
15 views

Create Windows-compatable symbolic links in Ubuntu

I am using a SSD which is running out of space. Like 300 kB remaining. I need a symbolic link from the Program Files folders(32 bit and 64 bit) on the C drive to the E drive. Unfortunatly, the mklink ...
0
votes
1answer
73 views

How to change the address at FAT(or similar) to change the location of file?

I have a huge file which is about 67 GB is size. It takes a long time to move this file from one drive to another. So is there a way, from which I can change its memory address(I dont know the ...
0
votes
1answer
221 views

unable to execute: Too many levels of symbolic links

By mistake, I executed these commands : sudo ln -sf bash /bin/sh sudo ln -sf bash /bin/bash When I rebooted the Linux server in recovery mode I got this message: init : Failed to spawn ...
1
vote
1answer
200 views

Is there a fast method of changing directory to a symbolic links parent or source?

Say I have folder stucture: |- dir1/ | |- sub1/ | |- dir2/ |- sub1link -> /dir1/sub1/ and my current working directory is sub1link, is there a quick way to either: change directory to ...
90
votes
6answers
86k views

chown is not changing symbolic link

I'm trying to change the user/group of a symbolic link with the command: $ chown -h myuser:mygroup mysymbolic/ But it's not changing. I'm logged in as root. The current user/group is set to ...
0
votes
1answer
51 views

VIM Crashes/Freezes on specific files Mac OSX Mavericks

I've recently switched over to using VIM and use a friends .vimrc that works well for him https://github.com/dtothefp/dotfilesv2/blob/master/vim/vimrc.symlink I first installed vim through Homebrew ...
1
vote
1answer
1k views

Web shortcuts (.url) not working on Windows 7

I'm experiencing several symptoms, but I believe they are all related to web link files not working. First, I can't create we link files anymore. When I try New > Shortcut and put an URL, I get the ...
0
votes
1answer
14 views

Why isn't apache following my symbolic links?

I need to link to a directory from /var/www/html to a directory within the home directory of a non-su user. The operating is CENTos, the server is apache. The config file for the directory is ...
3
votes
0answers
2k views

Windows 7 NTFS Symbolic Link - Network Share Availability/Timeout

In Windows 7 and Windows Server 2008, is there a way to quickly detect if the target of a symbolic link is available? For example, a symbolic link is created to a remote share UNC using the ...
1
vote
1answer
32 views

How to delete broken symbolic links

I have a case where a lot of symbolic links remain after the original file was deleted. It was the result after leaving a Jenkins installation saving all build logs until the number of available ...
2
votes
1answer
128 views

How to create Symbolic Link chain in Windows?

I am trying to create multi-level symbolic links in Windows 8, but only the direct (first level) symlink seems to be working. If I try to use the second level SymLink, i get errors. i have been using ...
1
vote
1answer
51 views

What does Windows Backup do with symlinks?

I'd like to use Windows Backup to backup my Documents folder, but I have very large datasets which I have several symlinks to in my Documents folder. These datasets are backed up elsewhere, so I don't ...