2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to change the backup location of multiple iOS devices using symlink? [migrated]

This article outline the steps to take in order to move your iPhone or iPad backups to an external hard drive... https://www.imore.com/how-move-your-iphone-or-ipad-backups-external-hard-drive What I'm ...
user avatar
  • 517
0 votes
2 answers
23 views

win 10 copy folder with symlinks

I have a folder with lots of nested folders and files, as usual how typical folders go. While I'm having trouble copying the folder (the progress simply freezes until explorer is killed/restarted), I ...
user avatar
0 votes
0 answers
32 views

How to replace Symlinks with the files they point to on Windows 10?

I am trying to batch replace symlinks in several folders with the original files that they point to. The only solutions I've come across are Linux/Unix/Bash scripts as shown here: Replace Symbolic ...
user avatar
  • 49
1 vote
0 answers
27 views

Symbolic link pointing to network path instead of a local path

I am trying to setup a way to have a network file path mount as if it's on my local drive in Windows. ex: "\10.0.0.205\Files" shows up as "C:\Volumes\Files". I have tried mklink in ...
user avatar
  • 11
0 votes
0 answers
58 views

Exclude all symbolic link folders from OneDrive sync

I work on many projects that are saved on my local OneDrive folder that are then synced using OneDrive to the cloud. In each project, I use symbolic links (aka symlinks) to link to data stored on ...
user avatar
-2 votes
1 answer
36 views

Symlink that runs a script when accessed (Linux)

I would like to make a symbolic link that refers to a file and runs a script every time it is accessed (specifically one that shows a notification and logs to a file). After a quick search of Google ...
user avatar
0 votes
1 answer
38 views

Ubuntu WSL: symlink to windows share with specific name

I'm trying to set up a new Windows environment with WSL. My previous distro became corrupt, so to somewhat compartmentalise things I'm creating a couple of VHDs on the host system and attaching them. ...
user avatar
0 votes
0 answers
13 views

Symbolic Link to a folder not shared in a shared folder

I have this backup folder for each of my childer, myself and my wife. Each of them is shared from my PC as I don't have a server yet, now I found a way to backup our phones to each of our backup ...
user avatar
  • 1
0 votes
0 answers
166 views

Symbolic link does not work in Git over Windows

I have a repo called Base and another repo called Project. They are cloned in C:\Company\Base and C:\Company\Project. I use mklink C:\Copmany\Project\BuildScript.bat C:\Company\Base\BuildScript.bat to ...
user avatar
  • 23
1 vote
1 answer
18 views

Use Windows share with "remote-to-remote" links in Linux

I mount a Windows share on recent Linux with default options that work. But on the Windows share a new symbolic link with the name "archive" has been created that point to another Windows ...
user avatar
  • 184
0 votes
2 answers
38 views

symlink points to correct binary, but still another is executed?

I'm a bit confused here on how this is possible. I installed a new version of Python, removed the old symlinks and replaced them with the new ones. For some reason though, the old binary still gets ...
user avatar
  • 105
0 votes
0 answers
28 views

Resolve symbolic link to local CSS file

I am viewing some webpages I have generated on my local computer. I have a file called "style.css" in each directly which is symbolically linked to a global CSS file (Windows 10 - I use the ...
user avatar
  • 814
0 votes
0 answers
30 views

Is It Possible To Create a Symlink That Goes To A Local Directory in Termius SFTP Local Pane?

I'd like to create a symlink in my local user directory (on a Mac) that points to a directory so I can get to it quickly in Termius when I'm saving files to the target directory via SFTP. I created ...
user avatar
3 votes
1 answer
666 views

Symlinks made in the linux side of WSL2 do not appear in the windows side under \\wsl$\xxx

I have a Windows 10 with WSL2 inside. Whenever I create a symlink in the linux side, I expect it to be seen from the windows side (as it happens for example in a server with samba). But I cannot ...
user avatar
0 votes
0 answers
19 views

Make symlink to file/folder using Automator workflow service

I've created a service that runs the following shell script: for f in "$@" do ln -s "$f" "${f}.deleteThisExtensionAfterMoving" echo "${f}....
user avatar
  • 1,933
0 votes
0 answers
32 views

Click on symbolic link (symlink) not opening original file when accessed via shared folder (Windows 10)

I have a shared folder (the drive D:\) containing both a file and a symbolic link to this file. The link works in general when on the machine. However, when accessing the shared folder from another ...
user avatar
  • 101
6 votes
3 answers
182 views

How to safely recursively delete a directory in Windows?

NTFS supports all kinds of links including junctions, hard links, soft links, etc. so here's a problem. Let's say you're recursively deleting a directory which actually contains the above things. It's ...
user avatar
0 votes
0 answers
153 views

How can directories have only 1 hard link?

When doing ls -al, the second column (just after the permissions) is the number of hard links. For files, I find this clear. My problem is with directories. I read that it is not possible to create ...
user avatar
  • 1
0 votes
2 answers
28 views

linux copy symlinks and their hierarchy

Say I have the following structure: root | \ dir1 | | \ | libfoo.so.4.2 | libfoo.so.4 -> libfoo.so.4.2 | libfoo.so -> libfoo.so.4 JunkThatShouldntBeCopied dir2 I would ...
user avatar
  • 103
0 votes
1 answer
104 views

How to create symbolic links to each file in all subdirectories?

i had the follow structure of Folder/File, for example ./3DO Company, The - 3DO/goldstar.bin ./3DO Company, The - 3DO/panafz10e-anvil.bin ./Arcade/pgm.zip ./Arcade/skns.zip ./Atari - 400-800/ATARIBAS....
user avatar
  • 103
0 votes
0 answers
55 views

Create a junction by device ID\Volume instead of its letter

A junction is a directory symbolic link where C:\Link can redirect to D:\Target, for example. A mount point lets you redirect a directory to the root of an entire volume, so that C:\volume can ...
user avatar
  • 13
0 votes
0 answers
18 views

Trouble making contents of two separate folders (on separate local drives) appear as one folder

I would like the contents (files NOT folders) of two folders on different (local) drives to appear as one. Preferably I would like it to be indistinguishable as to where the actual file path is and ...
user avatar
1 vote
0 answers
179 views

Permission problems when accessing symlinks via sftp and scp on Windows Server 2019 with OpenSSH

I set up OpenSSH on a Windows Server 2019 machine and now I'm able to access the machine via ssh from my Windows 10 client. Then I created a folder on the Windows Server which contains several ...
user avatar
0 votes
0 answers
23 views

I made a typo creating a symlink and need to remove/fix it

Background: I use an old laptop Envy 6-1019NR sleekbook running Kodi Krypton on windows7 connected to a Mitsubishi WD82642 TV for movie watching. I have another self-built computer with movies stored ...
user avatar
2 votes
1 answer
90 views

Windows Equivalent to symlinking executables into PATH

I want to have a certain executable available in my %PATH% under Windows. The catch here is that the tool is in a directory where there are a lot of other executables which I don't want to have in my ...
user avatar
1 vote
0 answers
141 views

Can I redirect a remote git repository that has moved from one name or path to a new one using ssh urls?

I have an existing, long-lived git repository that I want to move to a different path (and eventually a different server depending on how this works). Obviously I can make this work by using a symlink ...
user avatar
0 votes
0 answers
37 views

Error running Python scripts from junction folder

I have Minecraft installed on a second volume (E:\Games\Minecraft). I created a junction folder at %appdata%\.minecraft pointing to that folder. I recently upgraded to Windows 11 and can't run Python ...
user avatar
0 votes
0 answers
100 views

Have to backup directories with symlinks to exfat - what to do?

The exFAT filesystem does not support symlinks. I'm now faced with the need to backup some directories, which do have symlinks, into an exFAT-formatted drive. For reasons, I cannot change the ...
user avatar
  • 7,312
0 votes
0 answers
23 views

Reduced "New" context submenu in folders with a symlink to mapped network drive in path

I observe some strange behavior of Windows Explorer in folders having in path symlinks to a mapped network drive. Here's an example. I have a network drive mapped to G: and a symlink testing pointing ...
user avatar
  • 205
1 vote
1 answer
39 views

libmtp udev rule removes symlink from custom udev rule

I use Ubuntu 20.04 LTS and have wrote a custom udev rule in /etc/udev/rules.d/, which creates a symlink, called "mybackup" and wrotes a short message to syslog/journalctl, if a specific ...
user avatar
0 votes
1 answer
190 views

Apache does not follow symlinks on Windows 403 forbidden

I found many similar questions but only for Linux and they did not solve my problem. What I do is: <VirtualHost *:80 *:443> ServerAdmin webmaster@localhost ServerName ...
user avatar
  • 1,050
3 votes
1 answer
835 views

Getting "Access is denied" when moving a folder to a symlink which is pointing to another drive

I have a drive named D and a drive named E. I created a folder named "test" in drive D and a folder named "destination" in drive E using the mkdir command. Then in D I created a ...
user avatar
0 votes
0 answers
38 views

Created a symbolic link on a linux system - can't access it on Windows 10

got the following problem. We have a small homeserver running OpenMediaVault, which is used (among other things) to backup our Windows PC stuff onto. Now I would like to share a subfolder of my ...
user avatar
0 votes
0 answers
65 views

Symbolic link got deleted after reboot in mac

Normally when i add symbolink link using ln -s , it will stay after restart/logout. But if i make symlink to /Volumes/ for example : sudo ln -s /Users/Desktop/temp /Volumes The link will be gone after ...
user avatar
  • 231
0 votes
0 answers
32 views

Creating large number of simlinks

I have 335 pathes to same files (some with different names) DarkestDungeon/colours/default_colour_grade.png DarkestDungeon/dlc/735730_color_of_madness/dungeons/farm/colour_grade.png DarkestDungeon/...
user avatar
0 votes
0 answers
58 views

What's the *proper* way to extract complex source code with tar?

Is there a standard way to use tar to decompress complex source code (such as in C or C++), in particular, which commonly includes symbolic links? The idea is to decompress it in a way that won't ...
user avatar
0 votes
0 answers
22 views

Symlink from non-existed disk

I have home PC with tools on disk A. Now I want to setup my work PC, but I haven`t disk A here. Unfortunately many tools has hard links to A. Is there way to symlink all requests from disk A to D on ...
user avatar
0 votes
1 answer
199 views

Symlink vs Hardlink and Backing up Win10

I have the following use case and am struggling to decide whether to use hard links or symlinks. I store e-books in a "Books" folder on my Win 10 Laptop. However I have a directory structure ...
user avatar
0 votes
1 answer
189 views

Using mv/cp to replace a invalid symlink with directory

I have a symlink at /tmp/bot which I want to replace with a directory. But I am getting error mv: cannot overwrite non-directory '/tmp/bot' with directory 'log' Steps to reproduce error # Create a ...
user avatar
2 votes
1 answer
428 views

WSL Ubuntu ~/ssh/config symlinked to c:\users\USER\.ssh\config permissions error

Reposting from StackOverflow on another users request I'm trying to use a symlink to simplify my SSH config management. My reasoning is that I use CMD for SSH when at home and WSL Ubuntu when in the ...
user avatar
0 votes
1 answer
88 views

Why Linux 'cp' command did not copy files from soft link completely?

I have a soft link which linked to a nested image folders (thousand of images) (DRS) xzhan@4daf823ea86f:~$ ls -l voc12_root lrwxrwxrwx 1 xzhan aiml 30 Mar 16 15:20 voc12_root -> /mnt/Data/Datasets/...
user avatar
0 votes
0 answers
83 views

symbolic link a source folder and save files in the target folder

I want to make a symbolc link from source Folder to Target Folder, such that all the files that are directed to be saved in source Folder should be saved in Target folder. Such that the files are ...
user avatar
  • 101
1 vote
1 answer
67 views

Can't see symlink target

I'm trying to see the target of these symlinks/shortcuts in Windows 10. I tried these instructions: Right click column, More, Link Target But the "Link target" column is empty. I also used ...
user avatar
  • 121
0 votes
1 answer
50 views

Moving %UserProfile% to new HDD via mklink

I'm trying to move my %UserProfile% from F: to a new HDD [L:] to give me more space, but I'm having some problems after I added L:, copied everything from F: to L:, and used Disk Management to relabel ...
user avatar
1 vote
1 answer
41 views

Linux Symlink difference

I have a Question. what is difference between this symlinks, the bottom symlinks is created with cp -s and about top files i dont know, I want know how they symlinked.
user avatar
  • 123
0 votes
0 answers
20 views

Apache symbolic links

We run applications on our internal webserver running Apache and PHP MYSQL. These are business bespoke apps. All working well. However as part of development we are looking to store documents (word ...
user avatar
  • 1
0 votes
1 answer
37 views

can't execute symbolic links to exes unless in the directory where the links are located

I created symbolic links to the exe files in a bin directory using these bash scripts: dan@Linux-Desktop:~/dev/arm/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin$ cat do_links.sh ./make_links.sh as ./...
user avatar
0 votes
1 answer
65 views

How can I copy folder containing Relative Symbolink Link to another drive without replacing Link?

Using Windows 10, I have created a folder named Products in which I add new folders for each product I buy. On my PC Products folder is similar to LG.Television Ryobi.Sprayer Epson.Scanner Dell.PC ...
user avatar
  • 223
0 votes
1 answer
151 views

I accidentally added ~/Downloads to Dropbox, then symlink from ~/Downloads can't be removed?

As the title said, I accidentally added ~/Downloads to Dropbox, then I think Dropbox symlinked the ~/Downloads folder to the corresponding Dropbox folder. ❯ ls -l total 648 drwx------@ 5 anthony ...
user avatar
0 votes
0 answers
27 views

How to redirect specific file I/O to another drive

I'm on Windows and i'm dealing with a badly written application that needs to store huge temporary files, but the temp directory is apparently hardcoded to %localappdata%\Temp and cannot be changed. ...
user avatar
  • 214

1
2 3 4 5
20