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
3k views

Nginx server configuration with symlinks to root folder

I am developing an laravel app. I have a server configuration like this: server { listen 80; server_name dev.site.com; return 301 https://dev.site.com$request_uri; } server { ...
2 votes
2 answers
7k 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/...
0 votes
1 answer
317 views

How to set a relative soft link using $SINGULARITY_ROOTFS in the setup part of the Singularity recipe file?

I'm trying to create soft link in the %setup section of the Singularity recipe file. If the link is relative, it does not work. For example: ln -s ${SINGULARITY_ROOTFS}../python2/2.7.5a ${...
8 votes
2 answers
6k 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 ...
12 votes
1 answer
12k views

Vim doesn't load symlinked .vimrc

I've got a symlinked .vimrc: simont@charmander ~/repositories/config-files [master *] ± $ ls -l ~/.vimrc lrwxr-xr-x 1 simont admin 6 9 May 17:14 /Users/simont/.vimrc -> .vimrc However, vim ...
1 vote
0 answers
157 views

Symlink still points to old version of AppImage

I have a script that autoupdates some AppImage applications and then it creates/updates a symlink with the new application (as they have a hash in their filename when they integrate, the previous ...
0 votes
1 answer
2k views

Can I link folders from an external drive to show up on my c drive?

I am running Windows 10 and my c: drive is almost full. I have a d: drive but the partitions are not adjacent, so apparently I cannot reallocate that drive to my c: drive. I have managed to link ...
36 votes
12 answers
49k 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.
16 votes
3 answers
11k views

Check if two paths are pointing to the same file

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a ...
2 votes
0 answers
439 views

How could i make a mirrored (sync) hard link copy of files from different folders on windows?

I'm trying to create hard link entries from a folders content into another folder, but synced in such a way that any files deleted from one (or the target) will be deleted from the other. There is one ...
6 votes
0 answers
2k views

GNU stow. Only symlink files, not directories

I'd like to manage my dotfiles with a Git repository and stow. Here is my current repository that includes the files/directories I'd like to stow and a Makefile with the command I'm using make stow. ...
1 vote
1 answer
57 views

Advice on migrating from a hard disk to SSD

I have a Toshiba P50 laptop that is still performing OK for me, despite being 7-years old. The only gripes I have are: it is taking longer to boot (I have a lot of stuff installed) the 1TB disk is ...
0 votes
0 answers
354 views

how do i use fuse to mount a file in a compressed file as a symlink

i have a directory full of .xz files, each containing a single file (not tar). uncompressed, the directory is 23GiB. (*.xml) compressed, the directory is 1GiB. (*.xml.xz) how do i fool the filesystem ...
31 votes
8 answers
49k 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.
5 votes
2 answers
8k views

Can I create a Windows Junction (Symbolic Link) aliased to a Drive Letter?

I have a bunch of data files on an E:\ drive. I'm moving all of that to a new computer and would like to consolidate many small drives (E, P) to one larger drive. But I want all the programs ...
0 votes
1 answer
2k views

Symlink some folders in home directory

I recently installed dual boot Windows 10 and Ubuntu 20.04 on a new machine. I followed a guide which suggested giving /home a 10GB partition and throwing the rest in /. I started putting all my ...
17 votes
1 answer
33k views

How to create symbolic links in /usr/bin on a Mac?

Environment: OSX Sierra, Darwin Kernel Version 16.3.0 Root Problem: I want to use a bunch of shell scripts in a central repository, which have a #!/usr/bin/zsh. On my Mac, the zsh is in /bin/zsh. ...
5 votes
1 answer
718 views

Detect Linux NTFS symlinks under Windows/WSL

Symlinks created in Linux on NTFS drives (ln -s) appear in Windows as short files with contents IntxLNK + 0x01 + (UTF-16 encoded target path) -- probably Interix. I want to write a script to convert ...
0 votes
0 answers
205 views

windows 10: How do I create symlinks to powershell scripts that can run inside powershell/Windows Terminal?

as above. I tried: mklink soft link and it just opens the contents of the PS1 script inside notepad mklink hard link and it is asking for what app to use to open the file Any ideas? I'm just trying ...
0 votes
1 answer
1k views

Why can I make a symbolic link in the target directory but not in the source directory?

Suppose I have a directory foo, another directory foo/bar, and finally a file foo/bar/foobar. Here's the quirk: If I am in the directory foo and type ln -s bar/foobar . it creates a working symlink. ...
0 votes
0 answers
780 views

Can `mklink /J` be used to create symbolic links to files on windows?

All the docs I found online (eg: https://ss64.com/nt/mklink.html, https://stackoverflow.com/questions/9042542/what-is-the-difference-between-ntfs-junction-points-and-symbolic-links etc) mention that ...
0 votes
2 answers
840 views

Virtual file system for Windows or Linux that combines several directories into one

Under OS/2 there existed the "Toronto Virtual File System", which allowed multiple directories to be combined into a singe directory. When you accessed an existing file, the virtual file ...
0 votes
1 answer
470 views

How to determine if a file is a symbolic link or a .lnk shortcut file in MSYS2 (mintty) terminal?

Is there a command in MSYS2 terminal that can be used to determine whether a file is a symbolic link or a windows shortcut .lnk file? For example: $ touch a.txt # Create a symbolic link: $ MSYS=...
0 votes
0 answers
153 views

When doing a backup, does it make sense to "copy as symlink" when source and destination are on the same volume, and "copy the content" otherwise?

Years after years, I'm using more and more symlinks between directories for many purposes. Let's say I do a backup of D:\. When configuring the backup task, you usually have two choices: either the ...
5 votes
2 answers
20k views

Using symbolic link directories with Apache, PHP and Windows 7

I am trying to setup a symbolic link for a directory and I am getting the strangest error. I am using: mklink /d C:\www\site\inc C:\inc where C:\inc\script.php is the file I need to run. This ...
2 votes
2 answers
9k views

trying to make symbolic link but have spaces in folder name

I'm trying to make a symbolic link via the windows command prompt. I am using a drop box-like service called Copy. it creates a new folder which it syncs to the web and other computers that it's ...
6 votes
3 answers
4k views

Make the contents of two folders appear in one

In Windows 7, I have three folders: "Images", "assets" and "all". I want the contents of "Images " and "assets" to appear in "all" automatically without copying those files into that folder (e.g. ...
1 vote
2 answers
748 views

Recursive symlink gets created when using ln -f -s

if I create a folder inside my current folder, say logs:- mkdir log ln -s -f log all_logs such that all_logs points to the log directory. ls -ltr Jan 7 23:33 log Jan 7 23:33 all_logs -> log ...
8 votes
5 answers
10k views

How to copy MS Windows symlink files as is?

I made some symlinks in MS Windows using mklink /D command. But when copy it, Windows Explorer always perform deep copy instead copying symlink itself. How can I just copy the link? I need to send ...
0 votes
0 answers
457 views

Put symlink in a slow drive pointing to a NMVE is a good way to speed up docs loading?

Cleaning up things after a MB crash, I got a Samsung NMVE 2 (1TB) drive and did transfered Windows 10 64 bits from a SATA SSD to it (in a 500GB partition), and really helped to load OS and some Apps, ...
0 votes
2 answers
111 views

Executing Visual Studio 2019, stored in a remote server

I have a personal computer, and a server. On both systems, Windows 10 Pro is already installed. TL;DR I want to execute Visual Studio 2019 Enterprise on my personal computer, but place the application'...
0 votes
1 answer
122 views

What does mk stand for in mklink also why does the first folder have to be removed?

I was just creating a directory junction and had to use mklink. My question is what does mk stand for in the word mklink? And why does the first folder have to be removed to create the link when doing ...
0 votes
1 answer
117 views

Creating symbolic link of xsane to GIMP's plug-in folder does not let use it as plug-in

As it is stated by the official xsane documentation, I created a symbolic link by the following command (in my case the folders are a bit different): ln -s /usr/bin/xsane /usr/lib/gimp/2.0/plug-ins/ ...
51 votes
7 answers
276k 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:\...
0 votes
1 answer
246 views

How do I copy a directory from one to another BUT preserving directory structure and only use soft symlink for the files?

With reference to this... /var/web/site/123/(everything inside) to /var/web/site/234/(everything from 123 BUT files are soft symlinked only) how can this be done using 1 line? i dont want to save to ...
0 votes
1 answer
2k views

Xorriso complaining about symlinks while creating Debian pressed ISO

I'm following the steps to create a Debian preseed ISO here: https://wiki.debian.org/DebianInstaller/Preseed/EditIso. It advises using xorriso to create the final ISO image for EFI systems as ...
45 votes
8 answers
99k views

Checking where a symbolic link points at in Windows 7

In Windows 7, how can I check if a file is a symbolic link or not, if a folder is a junction or not, and how can I check where they are pointing at (in case they are symlink/junction). Both in ...
236 votes
10 answers
471k views

How to copy symbolic links?

I have directory that contains some symbolic links: user@host:include$ find .. -type l -ls 4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include 4737415 ...
55 votes
4 answers
16k 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
1 answer
492 views

How to copy symlinks to a device that does not support symlinks?

I am trying to backup a directory to a Samba share, which apparently does not support symlinks. Are there any good solutions of how to proceed? I would suggest a sensible behaviour might be to ...
0 votes
1 answer
529 views

FTP access to a file accessible only by root

When I try to do the following: ln -s /var/log/exim_rejectlog /home/user/logs/exim_rejectlog It creates the symlink and FTP access to the logs directory can see it, but because files in /var/log/* are ...
5 votes
2 answers
16k views

Cannot remove a directory symbolic link on Windows

I created a directory symbolic link that points to an external drive: mklink /D C:\local\work F:\work I'm trying to remove it. Opening cmd shell as administrator and running the command: rmdir C:\...
0 votes
1 answer
209 views

Windows file junction

I have a backup solution which backs up a single folder of my hard disk. I want to "mount" files from various locations of my hard disk into this directory. At first I tried creating ...
2 votes
1 answer
2k views

Copy files as symlinks and maintain the directory structure on Windows?

I have looked at this question: Recursively copy a directory entirely as symlinks, preserving current symlinks and if I'm reading it right I want to do the same thing but in Windows. So, I have this: ...
0 votes
1 answer
1k views

Windows 10 symbolic link: bash vs cmd

I have a single bash script that I use to launch many programs. I called this script launcher.sh To use it, I create a symbolic link named myprog pointing to launcher.sh. While in BASH shell (MSYS2/...
5 votes
1 answer
830 views

Copy symbolic links with relative path - Windows 10, NTFS, Robocopy

I am using external hard drive to store all my data that have a lots of symbolic links. The file system is NTFS. Now I would like to copy some (or all) of the information to other drive keeping the ...
2 votes
1 answer
2k views

Why does following lots of symlinks get slow quick?

I have a directory with ~2 million symlinks that point to real files on the same drive, which is a real local hard disk (it's not a network mount). The file names are all unique and the files they ...
0 votes
1 answer
52 views

When a program opens a script that is referenced by a symbolic link and symbolic link changes - does it continue to point to the original file?

So say I have a long running program that is run using the symbolic link below. latest_version_of_script -> /path/to/script/v1 My program is still running and I do a release and my deployment ...
368 votes
10 answers
379k 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 root:...
2 votes
2 answers
16k views

Mklink - Symbolic Link with NAS & Onedrive

I have a NAS Storage drive on the network and want to link files from that to my onedrive account... details below.. W:\FILES\SUPERUSER (MAPPED DRIVE FROM NAS) linked to C:\ONEDRIVE\FILES (LOCAL ...

1
3 4
5
6 7
21