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.

0
votes
1answer
86 views

Loop in bash to create symlinks after every git pull

I have a scenario where I have a git repository that I do a git pull every x minutes, in the following dir: /opt/repo/ In this repository I have some directories like: /opt/repo/dir1 /opt/repo/dir2 /...
1
vote
1answer
567 views

Different symlink for different user on Windows

I have an app which saves its data on C:\ProgramData. That means for all users, it uses the same data. I want to achieve a way, so that different users can have their own separate data space. I have ...
1
vote
1answer
152 views

Recursively find all subfolders' files and symlink them with their containing folder's name

Hopefully such a thing is possible, I would like to scan all the files in the subfolders of /home/user/source/ and create symlinks to these files in a different folder with a different file ...
1
vote
1answer
580 views

Differences between symlink to /tmp and tmpfs

I'm trying to make a read-only file-system (Raspbian). One common way is to place some directory (that are to be writable) in a tmpfs. Example, I found some tutorials that suggest: rm -rf /var/lib/...
1
vote
1answer
114 views

Backing Up Symlinks

I may have dug myself a deep hole ... I am running Windows 8.1. I can ask for temporary administrator privileges, but some requests get denied for policy reasons. Media in question is on a single ...
1
vote
2answers
11k views

symbolic link for existing directory

I am trying to change /var/log directory to symbolic link. As /var/log exists, I tried as below. # cd /var # mv log log.bk (1) # ln -snf /path/to/somewhere/var/log log (...
1
vote
1answer
41 views

How to track file location?

I want to track the paths of specific folders in my system in as simple and efficient of a way as possible. My first assumption was that I could achieve this using symlinks, but I see contradicting ...
0
votes
0answers
22 views

Link shell extension: link creation heavily delayed for some users

I'm having a problem with creating symbolic links. The computer on which we wish to create these links is being logged onto remotely. The OS is Windows 7 Enterprise and we use Windows Explorer. One ...
0
votes
1answer
303 views

Symlink executable not working on OS X

I am trying to create a symlink under math in /usr/local/bin for Mathematica (/Applications/Mathematica.app/Contents/MacOS/WolframKernel). The executable works, and even if I go through Finder to the ...
1
vote
0answers
90 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
1answer
38 views

Symlink a directory to another directory that exists with write access

Sorry for the vague title. I have a folder /opt/A/B/ and ideally, I want to symlink ~/B to /opt/A/ such that ~/B and /opt/A/B are in sync. The obvious answer would be: sudo rm -r /opt/A/B sudo ln -s ~...
0
votes
1answer
50 views

Create a lot of Symlinks with pwd and regular expressions and space in path

I'm trying to create a script in order to keep the files with the same extension in a folder separated from the rest. In particular, I want a script that, executed in a folder, create soft links of ...
0
votes
1answer
248 views

Why is a Windows symlink different from that in Unix?

I've been searching on the web about this. Everything I can find states that Windows mklink behaves like Unix ln -s (example in this site). However, I want to set JDK up so I can access it as just ...
0
votes
1answer
660 views

Access shared drive C: on Win 10 from MS-DOS 6.22

I need to use a shared folder on a Windows 10 Host from a MS-DOS 6.22 computer. I can map the shared folder on MS-DOS but it behaves not as expected. If I create a folder on Win10 c:\sharedfolder, I ...
0
votes
1answer
180 views

Using symbolic links to add a folder to the path on macOS

macOS 10.12.6 Hello, I have a Golang installation on an Apple Mac and I would like to make the files in my $GOBIN folder (~/code/go/bin) searchable from anywhere. I'm aware that I could simply add ...
0
votes
2answers
41 views

On MacOS, create a desktop shortcut and prevent it from being deleted

How can I create a desktop shortcut to a network share, and prevent it from being deleted (perhaps by a non-root user?)
1
vote
1answer
956 views

How to copy a folder maintaining symbolic links and junctions relative to the copy root?

This might be a bit of an edge case, but I would dearly like to know if there is a simple way to achieve this. Suppose I have the following set up (where the latter two are symbolic links to the ...
1
vote
0answers
152 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
1answer
542 views

Virtualbox follow host symlink

So I have virtualbox with shared folder linux host: /home/www/shared /home/www/shared/storage -> /home/www-storage/ what linux guest sees: /var/vb-share /var/vb-share/storage -> /home/www-...
0
votes
1answer
143 views

Using “broken” junction link to block writes

So I wanted to stop Spotify from caching to my SSD (I have a small 60 GB drive), but apparently it's not possible to disable caching. Spotify keeps the cache in the %LocalAppData%\Spotify\Data folder....
1
vote
1answer
106 views

Representation of junctions in Windows

I'm using a set of junctions to move my user folder tree to another drive, as my OS install is on a rather small SSD. However, the junctions still appear as if they occupy space on the SSD. Can I do ...
3
votes
1answer
2k views

Is it possible to make Windows 10 show symbolic links with a different icon in Explorer?

I would like to know when I am browsing a symbolic link folder as I have had issues with copying directories then missing the fact that symbolic links have been lost through the copy operation etc. Is ...
0
votes
2answers
61 views

Will symbolic links still work after a Windows reinstall?

I'd like to reinstall Windows and create a clean system image, but, before I do that, I would like to create symbolic links (for file organization purposes). The links are not on the C:\ (OS) drive; ...
0
votes
0answers
113 views

Have Firefox recognise user.js as a 0 size symlink

With reference to this bug, how can I have Firefox recognise user.js as a 0 size symlink? This comment appears to offer some guidance, but I have no idea how to implement it.
0
votes
1answer
556 views

Meaning of the lock and strange symbol in GitHub Desktop client

What does that two symbols mean in GitHub Desktop client? Here is a screenshot: If someone knows the name for the second symbol, write it here please. I mean symbols on the left of the projects ...
2
votes
1answer
269 views

How to place symlinks to all executables installed through Chocolatey in a particular directory?

Chocolatey - PowerShell - Symlink I installed a few packages using Chocolatey Package Manager. Rather than adding each of the installation directory to PATH or in my $PATH variable in PowerShell, I ...
0
votes
0answers
852 views

How to copy symbolic links with relative path in Unix?

I have this folder /full/path/sourceFolder with the following files: full/path/sourceFolder/fileA /full/path/sourceFolder/copyA -> fileA /full/path/sourceFolder/copyB You can see that the symlink ...
0
votes
1answer
523 views

Symbolic Link Windows 10

My 120 GB SSD is currently at about max capacity and I mistakenly installed too many programs on that drive including Visual Studio and IntelliJ and Eclipse, which take up a lot of space. I wan't to ...
1
vote
1answer
466 views

How to delete all directories except directories pointed by symlink

I have below directory structure. drwxr-xr-x 5 ec2-user ec2-user 4096 May 22 07:03 TEEST drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 05:33 BEE-TES drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 10:53 ...
0
votes
0answers
197 views

How do you make a Win10 Quick Access link to a symlink without it translating it to the original directory?

Scenario: Create SymLink: C:\Data\workspaces --> C:\Users\****\Documents\workspaces Navigate to C:\Data\Workspaces in explorer Click and drag the the path from the address bar onto "Quick Access" ...
0
votes
3answers
2k views

Create a relative symbolic link in Windows 10 for file copies

I'm going to drastically simplify everything I have tried. For exact details, please review the CMD screenshot. I want to create a RELATIVE PATH symbolic link named [ RESOURCES ] at the following ...
3
votes
0answers
144 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 ...
0
votes
0answers
5k views

SMB network shares and symbolic links

I'm experimenting with Samba shares at home and I'm trying to understand how symbolic links work. I have a few network shares on a couple of machines that run a mix of Windows and Ubuntu or Debian ...
0
votes
0answers
26 views

Do Windows libraries have an environment variable? [duplicate]

Goal: I'd like to save files without breaking my save settings if the drive letter changes. Example: This works using environment variables and changing the location setting of my user library ...
1
vote
1answer
59 views

Why can't I create a symlink to a directory at the same level as that directory?

I have a directory called Foo. I want a symlink to it, on the same level as it, called foo. ln -s Foo foo creates a symlink in Foo pointing back to itself. $ mkdir lntmp && cd lntmp $ mkdir ...
2
votes
0answers
207 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 ...
0
votes
0answers
72 views

Is it possible to create global .lnk Windows' files? [duplicate]

I tried to research for this, but nothing was clear to me. I'm a true newbie when talking about coding, as it has been a while I don't work with it. All I've found was VB, and some weird hex registry ...
1
vote
1answer
330 views

How to maintain relative symbolic links during copy?

I have a directory structure with a bunch of relative symbolic links. Example: e:\test e:\test\foo\a --> "..\bar" e:\test\bar\b --> "..\foo" Is there a way to copy the entirety of the directory from ...
0
votes
0answers
181 views

Need symbolic link functionality WITHOUT symbolic pathname

Running Windows 10 Pro. I am trying to work around the 260 character MAX_PATH limitation native to the Win32 API. I have created a series of backups, which we'll say are designed to back up "...
0
votes
0answers
1k views

Why doesn't XCOPY copy my symbolic link?

I have a folder contain a directory symbolic link, with its structure as following: my-folder - sub-directory - symbolic link (link to d:\some-folder) - file The xcopy command I used is xcopy /e ...
0
votes
0answers
39 views

Create a symbolic link depending on current network?

I would like to create symbolic links that link to different folders depending on the network I'm currently connected to. Is that possible? When I'm connected to my LAN, I want to work directly on ...
0
votes
1answer
82 views

Create a symbolic link on a networked drive

I'm trying to create a symbolic link on a networked drive that's mounted at login when my PC connects to a VPN. I'm getting the following error: I've come across this thread but it wasn't of much ...
2
votes
1answer
3k views

Creating a symlink gives cannot overwrite directory error

I have a Django app with a postgresql backend. Postgresql creates temporary files every now and then - this can be a killer if disk space is critical (as is my case). One way to alleviate the ...
1
vote
1answer
71 views

Problems creating symbolic links on Mac

I am experiencing strange behavior on my Mac. When I create a symbolic link with command ln -s nothing happens and when I do listing a directory no symbol link appears. So I tried creating the ...
0
votes
1answer
76 views

exe file referencing windows symlinks

I'm using an exe file that references other folders in the current directory, if I create a symlink to the parent folder everything works fine. When I create individual symlinks for the child folders,...
0
votes
0answers
75 views

Empty symlinks in tarball when backing up a typo3 installation from linux to windows

On a linux server I have a typical typo3 installation containing symbolic links: document_root |--- .htaccess |--- fileadmin/ |--- typo3_scr -> /path/to/typo/src/ |--- typo3 -> typo3_src/typo3/ ...
1
vote
1answer
265 views

Suppress output of MKLINK /J?

I am looking to have a batch file, where it suppresses the mklink output. I do not want the user to see the path. I was able to do this with > nul and robocopy. mklink /J "newpath" "originalpath" ...
0
votes
1answer
460 views

Creating Symbolic Link to directory with spaces in name

Trying to create a symbolic link to a directory on networked computer. The directory has a space in the name. This works fine: mklink /d "C:\Jobs" "\\BECFILESERVER01\Documents\Jobs" but I want my ...
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 ...
1
vote
1answer
588 views

Can the Desktop directory be a symbolic link in Windows 10?

I would like to synchronize the Desktop directory between computers. On Linux i could just move the Desktop directory to my Dropbox directory, and then create a symlink from the old location to the ...