As of May 31, 2023, we have updated our Code of Conduct.

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
8 views

Storage HDD migration without losing shared folders (Rpi & OMV)

Right now I have a 1TB HDD plugged in my Raspberry Pi using a SATA-USB case. I plan on buying the https://wiki.geekworm.com/NASPi_Gemini_3.5 which is : an enclosure for two 3.5" HDD RAID support ...
Silloky's user avatar
  • 11
1 vote
0 answers
14 views

Possible to make *some* symlinks behave like 'cd -P'?

In Linux, suppose you have a symlink at /foo/bar that points at directory /foo/baz. Case 1: If you do cd /foo/bar, you'll be in /foo/bar/baz. Case 2: If you do cd -P /foo/bar you'll be in /foo/baz. (...
nerdfever.com's user avatar
0 votes
0 answers
20 views

Can't link to NFS mount from WSL2

In an attempt to get round Can't mount NFS from within WSL2 Ubuntu 22.04 I tried: Mounting the NFS share in Windows. Creating a symbolic link from WSL2 to Windows. The first step worked - I ran ...
parsley72's user avatar
  • 1,010
0 votes
0 answers
17 views

Symlink script assist

Symlink question: I would like to know how I determine that the "target" will be the same place where I run the file? I want to create a situation where wherever I run the file (target) A ...
itzik nahum's user avatar
0 votes
0 answers
11 views

How can I move a folder without encountering issues related to cyclic folders and excessive disk space consumption?

I'm using the following command to move a folder: robocopy "C:\Users\TTHCMM" "D:\C_Drive\Users\TTHCMM" /E /MT:32 /NFL /NDL /NJH /NJS However, I've noticed that this command can ...
william007's user avatar
1 vote
1 answer
54 views

how to test in bash which of the two symlinks is older (or newer)

Apparently, the bash tests -nt and -ot dereference links. Let's consider the following files and links to them: $ ls -lt --full-time f* | cut -d ' ' -f 6- 2023-04-24 02:05:01.083919712 +0200 f1l -> ...
AlMa0's user avatar
  • 33
0 votes
0 answers
28 views

How to instruct the linux kernel to resolve all symbolic links in a mounted directory relatively to another root?

I have mounted an ISO at /mnt. The ISO is android's system.img. At the root it has a folder etc that is linked to /system/etc: lrw-r--r-- 1 root root 11 Dec 31 2008 etc -> /system/etc But it ...
g00dds's user avatar
  • 43
0 votes
1 answer
30 views

replace symlink with file on write

Is there a way to make a file system/server replace a symlink with an actual file on write? Something like inotify would work, but as far as i can tell, I cannot run code before the write operation is ...
Paul S.'s user avatar
0 votes
1 answer
99 views

How to move users directory to another disk

I have been searching the forums for ways to move the C:\Users and C:\ProgramData folder to another drive for data security and what little performance gains it may give. The two most common methods I ...
David_M16's user avatar
0 votes
0 answers
83 views

Can linux samba server (smbd) provide to (Windows) clients if a file is symlink (or hardlink or btrfs reflink)?

I have a NAS with Debian. Disk in NAS is btrfs. Service which serves files is samba server (smbd). I have a Windows client with an external NTFS disk. I want to synchronize NAS disk with external disk ...
Chameleon's user avatar
  • 201
0 votes
0 answers
98 views

Can I create a symbolic link/junction to a Teams folder without issue? Is there a better way to achieve this?

I'm new to using Teams, and am not a networking professional etc. so please forgive my ignorance there, and if I'm using incorrect terms for things, but here is my situation: I have to use some old ...
WhatEvil's user avatar
  • 184
0 votes
0 answers
7 views

Link to newly installed app from desktop Menu just flashes

I installed latest ImageMagic (v7) from tarball; it was installed in usr/share/Imagemagick_7 and the binaries are in usr/local/bin. I know the installation is working correctly because whereis magick ...
Birdman's user avatar
  • 39
0 votes
0 answers
97 views

Script fails in WSL/Ubuntu when run via a symbolic link

I have a script that behaves differently when run by name compared to when it is run via a symbolic link. The problem is specific to WSL/Ubuntu. The same script, when used under Linux or Windows/...
jjoIV's user avatar
  • 1
0 votes
0 answers
29 views

CLI of Inkscape not working from regular PowerShell

End goal: Automatially convert all .drawio.svg files in working directory to .pdf-files while compiling a LaTeX-document. I have VS Code with LaTeX Workshop set up as my LaTeX-Environment and ...
DarkDiamond's user avatar
  • 1,850
1 vote
0 answers
222 views

LFS 11.2 on Ubuntu Server 22.04: chroot: failed to run command ‘/usr/bin/env’: No such file or directory

I have been following the LFS 11.2 guide and it has gone smoothly up until the chroot part. Although the symlinks have created properly i.e. relative to the LFS directory, the error is still ...
Abhinav Gupta's user avatar
0 votes
1 answer
160 views

Wine: How to create link a directory outside of its virtual C drive?

I am using Wine with Bottles. I created a "bottle", and it is using some directory under ~/.var/app.... as a virtual C drive. That is, if I put some file there, in Wine applications, the ...
Damn Vegetables's user avatar
0 votes
0 answers
85 views

git won't recognize windows folder is a linux symlink - status shows link files as deleted and symlink target contents as untracked

I cloned a repo to a network drive on a linux machine, then opened the cloned repo on a windows machine. the repo has linux style symlinks in it, that windows interprets (correctly) as folders. the ...
Harry Zalessky's user avatar
0 votes
2 answers
470 views

Qt startup error: symbol lookup error: /lib/libQt5XcbQpa.so.5 : undefined symbol : FT_Get_Font_Format

When I run the following python code, import numpy as np import matplotlib.pyplot as plt a = np.arange(3) plt.pyplot(a, a) plt.show The machine print: [test001@login01 ~]$ python3 draw.py ...
Daniel's user avatar
  • 1
0 votes
1 answer
39 views

List directories containing symlink

I have a number large number of directories, many of which contain symbolic links to files elsewhere. I would like to replace these links with the files as described in this question. However to do ...
G_T's user avatar
  • 103
0 votes
1 answer
97 views

macOS: Alias or symlink to 'new' app does not work

On my Mac I migrated my text editor to a different one. The old one is the now 'archived' Atom editor and the new one is VSCodium. Many 'default' file types point to 'Atom' so that does not work any ...
php and js's user avatar
0 votes
1 answer
84 views

Resilient file or directory linking or automatic link updating?

Is there a file or directory link method that would be dynamic/resilient against target change? I mean if I create a link mklink /d test c:\test I can change the link name after but not rename/move ...
Bricktop's user avatar
  • 210
0 votes
0 answers
29 views

Removing SYMLINK redirect

I have read with interest prior posts about finding redirects, both SYMLINKs and JUNCTIONS. Running Windows 10. Ran the following from the command prompt as administrator and got these results. dir /...
dkocian's user avatar
0 votes
1 answer
63 views

Is it better to move the location of special folders in Windows 10 or should I redirect them using symbolic links?

On my Windows 10 machine, the OS is installed on C: but it's a small disk. I have a bigger disk at D:. I want special folders like Documents, Desktop, etc. to be in my D: drive. I figure I have two ...
IMTheNachoMan's user avatar
0 votes
1 answer
68 views

Epic games launcher redownloading symlinked files

Downloading a 150GB+ game on my SSD, I've symlinked some already downloaded files from the original D:\ directory to C:\ to free up space for new files yet to be downloaded, although symlinking files ...
ChairmanSaab's user avatar
1 vote
1 answer
185 views

Apache and PHP symlink behavior

I have debian installed with apache2 and php and symlinks are working. But not as I expect: /a/b/config.json /a/b/index.php /a/b/api/api.php /var/www/html/x/config.json /var/www/html/x/index.php ->...
Tobias Wollgam's user avatar
0 votes
0 answers
21 views

Google Drive Upload Folder silently ignores and does not upload symbolic links [duplicate]

Question Summary I am now unable to upload Linux directories that contain symbolic links into Google Drive. It worked in early December 2022. I need to know if that is intentional deprecation of this ...
bgoodr's user avatar
  • 531
2 votes
2 answers
45 views

Create a Windows shortcut that behaves like the actual file

I have file A. I need to put it in folder B but I update it from another folder where things are centralized. For obvious reasons, .lnk shortcuts don't behave like symlinks. Is there a way to create a ...
Aaron Liu's user avatar
0 votes
0 answers
200 views

mklink to a remote shared folder, with remote account

Difference to qustion Creating a symbolic link to mapped network drive in Windows Referenced question is about building symlink to a mapped network drive. This question doesn't say anything about ...
karatoga's user avatar
  • 101
0 votes
1 answer
292 views

rclone copy symlinks as symlinks

I would like to use rclone to copy one local disk drive to another disk drink. Attempting: rclone /Volumes/diska /Volumes/diskb This fails with Can't follow symlink without -L/--copy-links. The disk ...
William Entriken's user avatar
0 votes
1 answer
36 views

Cannot remove a symlink recursive

During a delete of a backup, somehow the rm -rf got stock and couldn't delete a symlink. Now, my folder looks like that: $ ls armips-master # folder $ cd armips-master $ ls armips $ readlink ./armips ...
Sisyffe's user avatar
  • 11
0 votes
1 answer
960 views

How can I create a symbolic link of a file in another directory with relative path?

THE PROBLEM I'm developping an ai training app. The app uses docker and some folders are shared (mounted). Absolute paths inside and outside docker differ, and I need to create symlinks that work on ...
J Pablo F's user avatar
1 vote
0 answers
90 views

node.js app symlink relative path resolution

I have a node.js application that lays under /opt/myapp. There is a folder called "plugins" (/opt/myapp/plugins). In the plugins folder (oh wonder) are stored plugins that are loaded on ...
Marc's user avatar
  • 265
0 votes
0 answers
17 views

Running truffle installation in vagrant environment

Connect to homestead and run vagrant up, vagrant ssh If I proceed with npm install truffle@v5.1.61 in the folder location, an error code appears at the bottom. vagrant@homestead:~/code/contract/...
user1746130's user avatar
0 votes
1 answer
227 views

Restricted user folder symlinks

In my user folder, (C:\Users\user) there are a bunch of symlinks that don't show in File Explorer, even when show>hidden is enabled. I just noticed them because I had my folder open in VS Code. If ...
Tuor's user avatar
  • 273
1 vote
2 answers
140 views

Why would a symbolic link intentionally point to a non-existent name?

I was browsing around in my machine and came across a dangling symbolic link that appeared to point to an IP address. lrwxr-xr-x@ 1 greatone greatone 14 Oct 21 12:36 RunningChromeVersion -> ...
james's user avatar
  • 23
0 votes
0 answers
63 views

How to Windows 10 MKLINK without deletion or rename original folder?

Microsoft Office 365, by default, do not show custom Libraries created with Windows 10 File Explorer. I am advised to use mklink as workaround but need help on the steps. According toworkaround for ...
sit123's user avatar
  • 11
0 votes
0 answers
114 views

Moving C: directories to another drive with Windows 11

For more than a week (as I haven't given up), I've been preoccupied with moving C:\PerfLogs, C:\ProgramData, C:\Temp & C:\Users to drive D:. My procedure to doing this is quite simple. Boot into a ...
Tempus Nomen's user avatar
0 votes
1 answer
153 views

Restoring from backup made with rsync -M--fake-super

For years I have been regularly running the following command locally as a root filesystem backup in the hope I am safe: rsync -aAXv --progress --delete / --exclude={"/dev/*","/proc/*&...
kralg's user avatar
  • 1
0 votes
0 answers
191 views

SAMBA is making symlinks appears as actual files and directories

I've got a Linux file system that I am sharing using SAMBA. On a Windows 10 machine that has the share mounted I have a program written in node.js that is trying to walk the file system. However, ...
Michael's user avatar
  • 2,564
1 vote
1 answer
299 views

Shared partition to be symlinked by both Dual Boot OSs

TIL learned Windows support symlinks for quite a time now and I do want to upgrade my Ubuntu... I'm thinking of making a partition for stuff like downloads and documents that I could symlink to my &...
Noriller's user avatar
  • 111
0 votes
0 answers
71 views

How to reverse the effect of robocopy junction link command used to change the directory of ProgramData from C to D?

I recently followed the following advise to free up space on my C Drive, however, I wasn't able to delete the ProgramData folder after executing the command below. Any idea how I can reverse the ...
ISs's user avatar
  • 1
0 votes
0 answers
39 views

Symlinks in Samba

I have a samba share in my personal computer (Linux) for accessing from my notebook and phone. I also use rsync to sync some folders. The problem is I have some relative symlinks which are shared as ...
nadapez's user avatar
  • 163
0 votes
1 answer
61 views

Create symlink to the final target of another symlink

Suppose a have a symlink named A If I execute this: ln A B -s then B points to A, having created a chain of symlinks: B->A->some Is there any option for ln to link directly to the final target, ...
nadapez's user avatar
  • 163
0 votes
0 answers
107 views

Symlink or Drive Letter for Remote Network Shares?

What differences exist, conceptually and operationally, between (a) drive letters and (b) directory symbolic links in Windows 10, where the target is a remote network share (or a directory within a ...
ebsf's user avatar
  • 143
1 vote
1 answer
356 views

How can I make Windows Explorer treat symlinks as regular files of the same extension?

I am using DVC for a project that I'm working on, for tracking and running a data processing pipeline that needs to run on Windows. DVC uses symbolic links as a way of connecting files' original paths ...
cgokmen's user avatar
  • 63
0 votes
0 answers
99 views

Changing the file icon for .Symlink shortcuts?

I have recently taking to using SystemLink (.Symlink) over standard shortcut files(.Lnk) as they solve a few shortcomings I have been having with the standard .Lnk shortcut files suffer from, chief ...
hellen_dorandt89's user avatar
1 vote
1 answer
874 views

/usr/local/bin/com.docker.cli: broken symbolic link to /usr/bin/docker

I recently installed Docker Desktop on Manjaro. Initially installed Docker Desktop didn't start so I followed the instructions from https://github.com/docker/desktop-linux/issues/51 Now Docker Desktop ...
Oyedeji Oyewole's user avatar
0 votes
0 answers
18 views

Backing up specific folders using symlinks

I am wanting to write a bash script to manage backing up important directories on a newly established Ubuntu Server. I do not need to backup the whole system, and really only care about backing up the ...
ABCDEF's user avatar
  • 1
0 votes
0 answers
161 views

Link a Local Directory to a Git Initialized Directory so they Sync when Changes are Made to Either One

Sorry if the question seems ignorant, and sorry for the bad misleading title; I can't describe my problem in one sentence. I run Arch Linux. I have a Git repository with my dotfiles (configs). And all ...
TechTycho's user avatar
1 vote
1 answer
76 views

I need to copy only symlinks from within multiple subfolders under a parent folder to another folder maintaining relative path information in symlinks

I use Ubuntu 20.04 and i have a lot of files under multiple subfolders under a parent folder. I need to copy only symlinks from within these subfolders to another folder maintaining the source folder ...
Ajith John's user avatar

1
2 3 4 5
21