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
3answers
40 views

Make program able to run from terminal command

Having program in /home/user/Downloads/program/main I can launch it by following command cd /home/user/Downloads/program && ./main or from GUI. What I want is to launch it from terminal by ...
0
votes
0answers
25 views

Issue to access symbolic link

I have created symbolic link for logrotate configuration by using below command. ln -s /Liferay/FS/fs0000/app/liferay621-ga2-migrated-final/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/logs/catalina.out /...
1
vote
3answers
22 views

How to use test -h or test -L on OSX?

I'm trying to detect in a shell script if a file is a symlink pointing to a directory. This is what I'm doing: if [[ -L "$out_dir" && -d "$out_dir" ]] then echo "Dir is a symlink" else ...
21
votes
9answers
29k 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.
17
votes
4answers
55k 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" "Z:\...
216
votes
2answers
111k 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 Creates ...
1
vote
0answers
57 views

Windows 10 mklink Program Files folder

I want to create a symbolic link with the mklink command so that when I need to reinstall my OS (Which happens frequently (And this morning)) I only need to format the partition that Windows 10 is ...
0
votes
1answer
18 views

Windows 8.1 - mklink to a folder with files in it

I have a directory 'dir1' with some files in it and a directory 'dir2' where I'll add some files. How can I create a link/junction (or just connect them)? I tried "mklink /D (or /J) dir1 dir2" but ...
4
votes
4answers
558 views

WIndows 10 & symbolic links problems

I have a dual boot configuration composed of Windows 7 and Windows 10. Both are configured a C: disk as system and D: as data disk, which includes Users directory. And I have also another (physical, ...
3
votes
2answers
3k 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 ...
4
votes
4answers
31k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...
0
votes
0answers
63 views

rsync a folder ignoring sud-dirs which has with circular symlink

I am trying to rsync a folder as below: rsync -ahLz ./src /tmp/ Dir "./src" has circulr symlink as: $ ls -l src/cpp/blddir lrwxrwxrwx 1 lnxbuild users 16 May 27 02:16 src/cpp/blddir -> ../../../...
0
votes
0answers
14 views

Why does setting CYGWIN=winsymlinks:nativestrict break zsh's (oh-my-zsh) history?

I have this in my .zshrc CYGWIN=winsymlinks:nativestrict When I source .zshrc or start the terminal. I get this error: zsh: locking failed for /home/r892107/.zsh_history: no such file or directory:...
0
votes
1answer
115 views

Is there a way to set the symlink attribute for a file in Linux?

I have a directory that I moved from a Linux file system to an NTFS file system and broke all of the symlinks. Moving them back didn't fix the problem because all the symlinks are now very small files ...
43
votes
4answers
8k 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.
5
votes
1answer
5k 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 ...
1
vote
1answer
64 views

Scrapy using older version of OpenSSL

I am running into errors because my Scrapy is using an older version of openssl (OpenSSL 0.9.8zh). I upgraded my openssl version (1.0.2h) using brew install openssl but I don't think Scrapy is using ...
1
vote
1answer
3k views

symlink and sudo executable

If I have the below sudoers entry usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file When I log-on as usera and ...
3
votes
3answers
153 views

File sync service supporting symbolic links

I wonder if any of the mainstream sync services (e.g. Dropbox and the likes) is able to sync relative symbolic links among the synced folders correctly. And by supporting I mean uploading and ...
1
vote
1answer
125 views

Symlink to a nonexistent drive in Windows

When I try to create a directory junction to a windows drive that does not yet exist, I get the following message: C:\>mklink H H:\ /J Local volumes are required to complete the operation. I ...
18
votes
4answers
12k views

Does Windows 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 ?
0
votes
0answers
28 views

Directory Symbolic Links do not appear in Start Menu/All apps on Windows 10

In windows 7 I had a folder in "C:\Users\myusername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs" that was a symlink to a UNC path on a network share. That folder (and the programs inside it) ...
3
votes
1answer
60 views

MKLINK (symbolic link) not working

I am trying to create a symbolic link on my Windows 10 64bit to redirect the iTunes backup file to my external hard disk (D:\) This is the link I added in my command window: mklink /J "%APPDATA%\...
2
votes
2answers
1k views

Windows symlink to executable - does not open by double click

On Windows 7 I created a symbolic link to an executable using: mklink Test.exe C:\Path\to\source.exe But when I try to run it by double clicking on it, i get the "open with" dialog. Running it ...
1
vote
1answer
14 views

Symlink prompting “Open with” [duplicate]

I can create a symlink: > mklink bravo.png alfa.png symbolic link created for bravo.png <<===>> alfa.png However this is on a virtual machine. For some reason if I create one ...
1
vote
0answers
66 views

Windows junction invalid on network share

I usually have this setup on my Windows machines: I share a single folder such as C:\share as network share. Then I use mklink /J somedir C:\somedir to create junction points to directories I want to ...
1
vote
2answers
2k 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 ...
10
votes
6answers
14k 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.
1
vote
1answer
342 views

7Zip Cannot create symbolic link, access is denied to libhdfs.so and libhadoop.so

I am working on Windows 10 and trying to install Hadoop I downloaded it from here. When trying to extract Hadoop for files (libhdfs.so and libhadoop.so) I am getting the error. Cannot create ...
0
votes
1answer
17 views

Share a 'Local' relative link to a Dropbox folder

We use Dropbox for business, so have extensive shared folders. I want to provide a direct link to a file, but via the local copy not by a web link. In the particular case it is under windows in an ...
1
vote
1answer
77 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
163 views

Symlink between different drives doesn't work

I have a folder which I want to move from D:\ to C:\ drive (they are two physical drives) without breaking anything that uses this folder. Following some guide I moved my folder to C:\ and tried to ...
1
vote
1answer
61 views

Cloud Drive alternatives (Bitcasa) [closed]

So I've been using a company called Bitcasa to store my data in the cloud. Recently got an email stating they are shutting down their personal packages and that I need to move my data. I had been ...
6
votes
4answers
7k views

How can I make git commit files in a symlinked folder

I have two folders: /home/me/code/project/ /srv/www/projectfiles/ In the /home/me/code/project folder, I have symlinked static to /srv/www/projectfiles/ i.e. /home/me/code/project/static/ -> /srv/...
0
votes
1answer
29 views

VirtualBox Vboxmanager not seeing VMs

I need to enable symlinks in my virtualbox shared file called sf_VMShare following this tutorial. When I run the command: VBoxManage setextradata YOURVMNAME VBoxInternal2/...
25
votes
2answers
22k 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
22 views

Setting up symbolic links so they'll work with winSCP or similar program

My user has a home directory /home/user1 I want her to be able to edit files in: /home/user2 So I put symbolic links in her directory so like this: sudo ln /home/user2/file.php /home/user1/file....
0
votes
1answer
70 views

Change location “Download” folder from CMD - Windows 8.1

I'm trying to change the location of the Windows download folder. I want to do from the CMD and not from "right click - Properties - Location - Find Target". I already tried with the symlink (mklink), ...
0
votes
1answer
42 views

strange soft link ln command issue on Mac

I want to create empty directory /Library/Java/JavaVirtualMachines/jdk1.8.0_5.jdk/Contents/Home/, which points to the real directory /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/, ...
6
votes
4answers
20k 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
38 views

Cannot figure out how to use this MKLINK (Yes I read documentation properly prior)

Basically I have this software that only validates my key if it's installed on the main drive (where the license is located in appdata). I have to install my files on the C, which i don't want. So I ...
10
votes
2answers
21k views

Ubuntu: Creating a symlink with network shared folder

I'm trying to create a symlink with a network shared folder (located in a windows sys) from my ubuntu system using the command. ln -s smb://sys-name/www www It creates a link but it says the link is ...
0
votes
1answer
41 views

centos - cannot create two symlinks to /var/www/html

I have two users chrooted to their home directories, that need access to /var/www/html. I tried to solve this by creating a files directory within their directories and in that files directory create ...
0
votes
0answers
10 views

How to migrate symbolic links from two folders?

I made a backup of "zimbra ce" rsync but I just realized that you have not copied symbolic links. I have a clean installation zimbra in /opt/zimbra/ and backup in /opt/zimbra_old/, how I can copy all ...
1
vote
0answers
47 views

SSHFS Permission Denied to symbolic link

I can mount a remote directory to /home/user/mnt and can see symbolic links via ls of that directory, but I cannot r,w, or x the links. I mount using the code below, using RSA key pairs for automatic ...
34
votes
8answers
60k 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 ...
3
votes
3answers
6k 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 ...
11
votes
2answers
9k 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
0answers
9 views

How to make a symbolic link to an USB device under Windows? [duplicate]

Scenario: I use a PC running Windows (10). I run git. git looks up the directory %USERPROFILE%\.ssh for the private keys. Problem: I want to keep my keys on my removable USB drive. I can make a ...
0
votes
0answers
16 views

Link errors with symlinks

I've moved all the files of ./usr to an external drive /home/Linkados/usr (SD card 8Gb) using $rsync --progress -l -r /usr /home/Linkados/usr Then I created a symbolic link from my SD to my flash ...