Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [symbolic-link]

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.

4
votes
0answers
142 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: ...
4
votes
0answers
493 views

adding symbolic link to os x finder sidebar

I'd like to add a symbolic link to the OS X finder sidebar, but when I do so the sidebar follows the link and creates a direct link to the target folder. This is not what I want, the reason I use a ...
4
votes
0answers
3k 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 ...
3
votes
0answers
723 views

How to delete a folder that may be a junction, and the destination using command line in Windows

I want to completely remove a 'folder' that may or may not be a junction to another folder. If the 'folder' isn't a junction rd /s /q 'folder' will do the job. But if the 'folder' is a junction to ...
3
votes
0answers
145 views

linux ext: exec'ing from a noexec partition?

I have reasons to mount a data partition with noexec, nodev which we will assume are valid :) Now say i want a few directories to contain executables. Is this possible? My first attempt was to ...
3
votes
0answers
583 views

Apache fails to display/follow symbolic links

I'm running apache v2.4 to host a personal web site on my office mac mini running OS X 10.10. The basic site is working fine but its throwing the 403 forbidden access error when I add symbolic link to ...
3
votes
0answers
809 views

Symbolic link doesn't work across drives

I'm on Windows 10. Running the command: mklink /D "G:\test" "C:\test" ...Is successful. However, in explorer when I double click the folder on G:\ and try to access any file in there, it says "...
3
votes
0answers
1k views

Removing shortcut overlay icon from symlinks only

I have recently started using symlinks to organise my folders on my PC but I do not like the Windows shortcut icon overlaying the link. I have seen tutorials for removing the icon from shortcuts (I ...
3
votes
0answers
124 views

Is it safe to move C:\Users and add a symbolic link\junction?

I am using Windows 8.1 and the Users directory has got a bit big (22.2Gb). I'd like to move it off the SSD and onto the massive HDD. Is it safe to replace is with a symbolic link from the SSD to the ...
2
votes
0answers
84 views

Make all commands obey symbolic link directory hierarchy

At least in bash, by default, the option set +P is set, which makes certain commands like cd, pwd, and tab-completion follow the symbolic link hierarchy, rather than the physical hierarchy. But, lots ...
2
votes
0answers
60 views

Mass replace drive letter on symlinks?

A drive letter changed (and I need to keep that change). I had used Link Shell Extension to relocate many things before this happened, so I now have a lot of symlinks pointing to locations at the old ...
2
votes
0answers
211 views

What's going on with this reparse point created by mklink?

Here's some odd behavior I encountered with mklink which ships in Windows since Vista. I suspect if may be a defect in mklink or even as deep as the NTFS file system driver, but the behavior could use ...
2
votes
0answers
326 views

Create a symbolic link to a named pipe

Let's say some application exposes a named pipe with the name "Pipe1". If I want to express the named pipe as a file path that can be used for writing or reading, the path \\.\pipe\Pipe1 or \\?\pipe\...
2
votes
0answers
209 views

Ubuntu for Windows incorrect path when using symlink

I have "Bash on Ubuntu for Windows" installed where everything seems to be working fine except for a symbolic link. I have created a symlink in my home folder to my Documents folder. If I cd via that ...
2
votes
0answers
2k views

Chrome writes too much to SSD

As the session recovery feature in Chrome and Firefox does a lot of disk writing which isn't good for an SSD, Firefox has a solution, but I'm not aware of one for Chrome. There are workarounds that ...
2
votes
0answers
573 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 ...
2
votes
0answers
207 views

How to configure Windows 7 firewall outbound rules for symlinked applications?

I'm using Windows 7 Ultimate. I have set the built in firewall in outbound white list mode (block unless allowed by a rule). Now I'm trying to configure some outbound rules for the built in ...
2
votes
0answers
625 views

How to mount Azure File share to support Symlinks on Azure file share with Ubuntu 14.04

I need to use the Azure file share for deployments with Capistrano, the problem is that I don't seem to be able to create symlinks on the disk, which mounts as SMB. I'm mounting the File Share on a ...
2
votes
0answers
1k views

Where to get the kernel source directory Kali Linux

This is a branch off of this question: Installing new driver on Linux, missing the 'Build' directory Since the PC has no internet I can not use apt-get to rebuild the kernel and get the ...
2
votes
0answers
24 views

Is is possible to create symlink inside another symlink?

I have the below folder structure: My Windows Machine |-- E: | -- myphotos <== link to ==> \\192.168.0.10\\myphotos | |--...
2
votes
0answers
561 views

Apache 403 forbidden symlink

I have a symlink from /home/public/folder to /var/www/example.com/thing but when I try to access example.com/thing i get 403 forbidden. I have given /home, /home/public and /home/public/folder o+x ...
2
votes
0answers
531 views

Can not cd into symlink on Debian 7

I want to give user webadmin full access to directory /usr/tomcat/webapps. So, I have created a symlink in webadmin's home directory to the target directory: lrwxrwxrwx 1 webadmin tomcat 28 Aug 19 ...
2
votes
0answers
88 views

Time Machine backs up symbolic links that haven't changed

Lately I've noticed that my Time Machine backups are taking a very long time. I recently replaced my boot drive, and I thought the problem might have been due to the way I reconnected the drive to the ...
2
votes
0answers
334 views

Permissions within Windows symlink to a Samba share

I have a microserver running Ubuntu from which I have created some Samba shared folders which I access from my PC and laptop running Windows 7. I have created some symlinks (using mklink /d) on the ...
2
votes
0answers
477 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 ...
1
vote
0answers
18 views

Sane symlinks to parallelize Windows and Ubuntu homes on WSL?

I'd like to link up, insomuch as is possible, my Windows home folder with my WSL Ubuntu Linux home folder. Up to now I've pretty much just gone into Ubuntu bash on WSL and just created a symlink to ...
1
vote
0answers
33 views

system.ntfs_reparse_data: Operation not supported - Ubuntu 18.04

I am trying to use this guide: https://serverfault.com/questions/165389/create-ntfs-symbolic-links-from-within-linux To try and copy reparse data from a symlink created in windows to another file (...
1
vote
0answers
18 views

Website: Error 403 on Symlinks Pointing Outside of Webroot

I am trying to create a website in the latest version of Fedora Linux. I want the website to point to something in my home directory. After doing some Googling, I can acheive this with a SymLink. The ...
1
vote
0answers
22 views

Use shared directory as read-only source of multiple distinct target directories - Windows 10

I have a source folder which I want to use as a starting point for multiple distinct target folders. This can be trivially done by copy-pasting the source folder, then just using the new directories. ...
1
vote
0answers
366 views

Tried to backup iPhone to external drive by mklink/J. Now it won't backup at all

I intended to use this command: mklink/J "C:\Users\DELL\Appdata\Roaming\Apple Computer\MobileSync\Backup" "G:\iPhoneBackup" to directly backup my iPhone to the folder iPhoneBackup on an external ...
1
vote
0answers
66 views

Is there a way to ignore symlinks when copying from Linux to Windows?

Ignoring symlinks when copying from one Linux machine to another is easy: rsync -a --no-links <usr>@<ip>:<source> <destination> For Linux to Windows, I'm currently using PSCP ...
1
vote
0answers
20 views

Can symlink or bootloaders be used to gain space/boot off a microSD?

I have a basic notebook that came with Windows 10 but only has 32 gigs HD space. After updates windows literally could not install all of it because of the size. It does have a microSD slot and I have ...
1
vote
0answers
45 views

I cloned my hard drive. Can I make ntfs permissions and symlinks go away for another machine?

I recently got a new computer. Because my current computer is kind of faulty, I took the fastest and least painful route to getting the 840+ GB of data on it to an external hard drive to bring to this ...
1
vote
0answers
150 views

Rsync a certain number of sub-directories

I'm currently working on migrating almost 80 jenkins servers for our company into a single jenkins server. I've already worked out how this will appear once we get the jobs migrated, however getting ...
1
vote
0answers
175 views

Windows symlink multiple images to new folder, can't iterate through symlinks using Photos app, and Explorer does not display image thumbnails

I learned from this question how to make symlinks in Windows. I think Python actually uses the Powershell command New-Item under the hood to make symlinks in Windows. I make a bunch of symlinks that ...
1
vote
0answers
91 views

symbolic links fail when executed from systemd-nspawn

I'm customizing an embedded system using systemd-nspawn to execute some commands into the environment. It works fine, but some symbolic links are not created. This is the part of my script: systemd-...
1
vote
0answers
154 views

Deleting hard-linked directory on macOS?

I have a directory on my macOS that I hard-linked to my Google Drive folder, using gln -d "path to directory" "path to Google Drive folder" If I try to remove the directory from my Google Drive ...
1
vote
0answers
27 views

Possible to use a symlink, junction, or similar to make one folder mirrored to multiple locations on Windows?

I have surveillance camera software that saves to a particular directory on a PC. I'd like to be able to somehow make any files saved to this folder simultaneously save to both the original folder, ...
1
vote
0answers
321 views

when using rsync --copy-links, rsync ignores symlink name changes

We're using symlinks to create "virtual" folder/file trees using content from all over the disk. In essence we have a mess and a script will create an organized file tree by creating symlinks to those ...
1
vote
0answers
283 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) ...
1
vote
0answers
2k 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
0answers
442 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 ...
1
vote
0answers
622 views

Windows: Is a symlink to NUL (or \\.\Device\Null) possible?

I have an application at hand, which insists on writing huge amounts of log lines into a file, that I have to clean out manually all the time. Is it possible to somehow replace the file with a ...
1
vote
0answers
273 views

Can't get symbolic links to work with the mklink command in cmd

I'm trying to create a symbolic link in cmd (yes, I have admin privileges) like this: mklink /D "G:\test" "C:\test" The command runs without issue: "Symbolic link created for G:\test <==> C:...
1
vote
0answers
138 views

Hardlink on same drive gives error about different drive

I'm using mklink /h to create a hardlink from "d:\some folder" to "d:\some other folder" and Windows 7 is telling me "The system cannot move the file to a different disk drive." But it's NOT a ...
1
vote
0answers
137 views

Use Junction or symbolic link to “rename” NTFS directory

I was wondering (indeed it would be very useful) if it is possible to use NTFS Junction, symbolic link or something like that to use an alias for some directory, and at the same time to hide the ...
1
vote
0answers
45 views

Add folder to path, or copy symbolic links to existent directory in path?

I am running some script on a server, making use of environment modules; basically, when I load a module for some software, it prepends the path with the folder of the software. I am loading a lot ...
1
vote
0answers
6k views

Vudu and Spotify Download Location

Vudu and Spotify both store the offline/downloaded files in 'AppData/Roaming' and I have maxed out my 'C' Drive. I want to move it to my larger 'D' Drive. I looked up what to do and all over the ...
1
vote
0answers
440 views

Google Drive grabs all symlink'd files when uploading

I'm trying to upload a folder (in which are several symlinks to hefty PDF files) to Google Drive. It's 60 MB not counting the symlinked files, and about 300 MB counting them. Google Drive insists ...
1
vote
0answers
407 views

Cannot access symlinked file on Apache server (403 Forbidden)

I'm running a minecraft server on my laptop, and I have created a symbolic link of /home/myuser/Documents/MinecraftSV/logs/latest.log to /var/www/html, but when I try to access it I receive a 403 ...