Questions tagged [symlink]

Symlink is short for symbolic link (also soft link). It is a term for any file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
8 views

Npm link duplicate dependencies breaks app

I got two projects: core-project and lib-project. The lib-project can be build and is using rollup to create /dist files. This project gets published so it can be installed. For instance in the core-...
Kraishan's user avatar
  • 441
-2 votes
0 answers
64 views

How to check if a file is a symlink in a folder in C++ win32?(NOT using Cpp17)

I have a folder which may/may not contain a symbolic link. I want to check for symbolic link and delete if there exists any. Is there any way to find that in cpp win32 application? I do not want to ...
Abhiroop Saha's user avatar
-1 votes
1 answer
29 views

Why does the eclipse 2023-06 fail to copy symlinked maven resources

Eclipse 2023-06 includes the new M2E 2.3.0, which in turn includes maven 3.9 (up from 3.8). By default the new maven release uses the maven-resources v3.3.0 plugin. When trying to build existing ...
Florian's user avatar
  • 3,067
1 vote
1 answer
36 views

yarn link error: cannot read properties of null ('react')

I would like to ask about the errors I encountered while using yarn link. while using yarn link to import a shared package into my project, I faced a dependency issue related to React when using yarn ...
gygy's user avatar
  • 11
0 votes
0 answers
19 views

problem deleting symlink on windows using python

This is the code I have been trying to use to delete a symlinked folder I have created and for some reason I keep getting permission errors def delete_symlink(self): symlink_path = self....
Nixsy's user avatar
  • 33
0 votes
1 answer
46 views

git: how to ignore symlinks?

I have a local git repo in a directory that contains soft links (Linux), and I'd like to ignore those links so that git status etc. won't bother about these links. I am using git v2.34. This answer ...
emacs drives me nuts's user avatar
-2 votes
0 answers
21 views

Is there a way to track and auto deploy .*rc files?

I currently use symoblic links to connect files from repository folder on my computer to the dotfiles on my local computer. I run a script to update/create all the dotfiles via powershell or zsh ...
abgup's user avatar
  • 42
0 votes
1 answer
106 views

How to add and use Android Studio JRE or JBR in $PATH via symlink?

Coming from Windows, you can easily add Android Studio's JRE now JBR directory in environment variable path where executable such as jarsigner and keytool are located. I tried to do the same in macOS ...
Bitwise DEVS's user avatar
  • 2,449
0 votes
1 answer
57 views

Cloud Function deployment does not respect Symbolic Linking

As the design specification makes clear, the source directories of Google Cloud Functions are expected to include main.py, requirements.txt, and __init__.py. Additional local dependencies (i.e., code) ...
David Bernat's user avatar
0 votes
1 answer
185 views

Error: Unable to resolve module react-native while using pnpm workspaces

I have been developing monorepo setup using pnpm workspace where I am trying to integrate a react native mobile app. The app is using a shared package where all the common ui elements are stored. I ...
Annie's user avatar
  • 1
0 votes
0 answers
32 views

finding xattr recursively for symbolic links rather than their target?

I've been using the following command (in bash terminal) to find the extended attribute com.apple.metadata:kMDItemComment for files/folders on my system. sudo find "`pwd`" -xattrname com....
Max Well's user avatar
  • 267
0 votes
0 answers
5 views

Text Editing Portals or Subfiles

I'm considering a new filetype a "portal" or "subfile" where identical redundant copies of text are stored in separate files that also list the indices and filenames where they ...
GlassGhost's user avatar
  • 16.9k
0 votes
1 answer
81 views

Nginx server not working with Symlink and giving: File not found (Laravel Project)

Its a Laravel Project My content directory is: /home/ubuntu/domain.name/laravel_server/code My www-web directory is: /var/www/domain.name/html symlink is created from content to www-web sudo ln -s /...
Pawan Bhatia's user avatar
1 vote
1 answer
33 views

Files.newInputStream with NOFOLLOW_LINKS option

I wonder what is the expected behavior of java.nio.file.Files.newInputStream with java.nio.file.LinkOption.NOFOLLOW_LINKS option when used on symbolic links. I could not find it in documentation. I ...
Daniel's user avatar
  • 13
0 votes
1 answer
31 views

Linux Symlink command between two directories adds a directory to link path

so I have a server with Linux to which I deploy staging Laravel application from Gitlab using the Gitlab Envoy guide The structure of folders is as follows: /public_html/ main folder where user is ...
Lukas Grofcik's user avatar
1 vote
1 answer
50 views

Apache deployment with symlink on managed servers doesn't work

Here is the context of my problem : we have managed servers (Hetzner) and are trying to implement a zero downtime deployment with symlinks. Here is what we do on each push : we deploy the new code in ...
Quentin Boinet's user avatar
0 votes
1 answer
276 views

How to create a symbolic link from a react component library to a next.js application for testing

I've created a React component library that is running as a micro frontend service. I am able to build it and have it running using these technologies: React Typescript Styled-components Storybook ...
Christopher's user avatar
0 votes
0 answers
17 views

Error when setting conditional RewriteRule to symlink folder with no permission

I tried to redirect webroot. Below is my situation: htdocs# ls -la lrwxrwxrwx 1 root root 43 June 27 10:27 public -> /var/www/mydomain/htdocs/myproject/web IndexIgnore * Options -Indexes ...
sataoma's user avatar
0 votes
0 answers
26 views

There is a problem with the file path when using the adb push soft link file

I work in WSL2 ubuntu, and use windows adb tools as for WSL2 ubuntu adb tools cannot find adb device. and windows adb tools work well in WSL2 ubuntu expect push some folders.At the same time, a soft ...
liangzelang's user avatar
0 votes
0 answers
38 views

How to force gcc linker to respect --sysroot when dereferencing absolute symlinks during cross-compiling?

My target rootfs contains symlinks like this: target_rootfs/usr/lib/aarch64-linux-gnu/libpthread.so -> /lib/aarch64-linux-gnu/libpthread.so.0 Therefore, when I compile and link with --sysroot=...
jhnlmn's user avatar
  • 381
0 votes
0 answers
17 views

How to use update-alternatives to update my sage command

There is a /usr/bin/sage file in my PC, and I can use sage to launch sage9.0 normally: It is not a soft link, because readlink /usr/bin/sage return nothing, and Now, I compiled a new version of ...
yode's user avatar
  • 493
1 vote
0 answers
53 views

Create a single shortcut for multiple files

I am trying to merge multiple video files from my HLS online streaming service into a single downloadable file without duplicating them on my hard drive. Is there a way to generate a list of the drive ...
hjolfaei's user avatar
  • 112
0 votes
0 answers
30 views

Copy os-release content from inside docker container

I need to capture host's os-release from inside the alpine docker container. If I directly run cp /etc/os-release /path/file command inside the container, it copies the details of alpine linux. I also ...
darecoder's user avatar
  • 1,508
0 votes
0 answers
81 views

Deploying React Vite app via symlink to dist folder on cPanel

I'm currently deploying my React Vite app on a VPS using cPanel. I have a script that pulls the application from github, installs the dependencies, builds the app and copies contents of the dist ...
Cam Parry's user avatar
  • 104
2 votes
1 answer
39 views

How in Inno setup add procedure created folder paths to uninstall?

My procedure reads folders names from an source location. And creates an eponymous folder in the destination. Folders every time is different that is why I can't create folders in [Dirs] section. I ...
Anton Vladimirov's user avatar
3 votes
0 answers
65 views

Is there any equivalent of fsync/fdatasync for symbolic links?

What is the proper way to ensure that a newly written symbolic link is saved to disk? I was doing some crash testing, and I see that in the case of an abnormal shut down, it may not be. You can see ...
user129393192's user avatar
-1 votes
1 answer
46 views

Why does the Linux shell command test -ef not work on soft links as its manual describes?

I create a hard link to student.sh and a soft link to student.sh. The hard links have different inodes than soft links. But when comparing the soft with student.sh by using the test -ef command, it ...
xgqfrms's user avatar
  • 10.4k
0 votes
2 answers
210 views

creating and removing symlinks

Hi im trying to symlink a directory in rust and later tried unlinking it. Im looking for a cross-platform method to do this. Ive tried using the symlink crate to do this. In unix systems, the crate ...
Yakiyo's user avatar
  • 19
0 votes
0 answers
34 views

Are circular symlinks harmless?

There's a bug in my project's build system that creates lots of circular symlinks for many different directories. Basically we are doing ln -sf <src_dir> <target_dir> for many directories ...
Raman's user avatar
  • 2,735
0 votes
1 answer
95 views

Link angular project locally

I'm trying to link my angular 13 project as a ui-component library. I've built the project and have the package in a dist folder. Next, I linked it to my main project (angular 14) using "yarn ...
Oyekeye Sam's user avatar
0 votes
0 answers
22 views

polyfills not being loaded in a symlinked child folder when running ng build

I have seen several issues raised on this topic, however this is unique because the errors are happening in a SYMLINKED repo. The parent repo loads polyfills correctly. I have already added polyfills ...
Rilcon42's user avatar
  • 9,594
-1 votes
2 answers
65 views

A shell script question involving rsync and symlink using cp

The script under consideration has been coded as shown below: #!/bin/bash #recursive remove REC_RM="rm -rf" #recursive copy REC_CP="cp -Rf" #rsync RSYNC_CMD="rsync -av --...
Vinod's user avatar
  • 1,041
-1 votes
1 answer
266 views

VS Code Error Squiggles do not work if the project dir is a symlink

VS Code (C++) error squiggles does not work if the project directory is a symlink (Linux). For instance, a └── b └── c └── file.cpp sl └─── ─> c When sl is a symlink to a/b/c, opening ...
Déjà vu's user avatar
  • 28.3k
0 votes
0 answers
22 views

How to create a softlink for all contents of a directory to another directory in shell scripts

I currently have a folder like this: root-config └── etc └── default └── grub └── ... And I want to create a soft link for every file under root-config in / while keeping the relative ...
SunnyMonster's user avatar
2 votes
0 answers
84 views

How to get the files inside a directory link with python

This is probably super easy, but after an hour of trying, I haven't been able to find it. From a specific folder inside a database called /Database/Images/, I manually created a folder link with ...
Guillermo López's user avatar
0 votes
0 answers
36 views

Screwed up Python setup for dev on a mac by downloading Python directly. How to fix it?

I got a new computer (Macbook Pro M2, Ventura OS) and hastily installed a bunch of stuff. My last computer had a mess of Python versions and conflicting symlinks, so I want to make sure I do it right ...
Achintya Agarwal's user avatar
0 votes
0 answers
25 views

Symlink creating a nested subdirectory

I don't understand what I'm doing wrong today with trying to create. Inside my current directory, I recreated an empty directory called input. I would like to symlink this to ../../../../opt/build/db/...
David's user avatar
  • 619
0 votes
2 answers
49 views

Querying status of symbolic links

Say I want to query what symlinks pointing to where (directory, regular file, non-existent file, etc): ls -aRl | grep '^l' | awk '{print $9 "\t" $11}' which is inefficient compared to: find ...
AvidSeeker's user avatar
0 votes
0 answers
15 views

Cannot create a symlink readable by another user [duplicate]

I issued recently a problem when using symlinks. I don't understand how to create a symlink to a file that can by read by anyone. Here is a (simplified) example I ran in docker, from a ubuntu image: ...
atxr's user avatar
  • 49
1 vote
1 answer
42 views

Resolving symlinks of a file path using boost c++11

I am trying to resolve any symlinks present in a file path even if the symlink is occurred to the parent directory of a file. So if for example I have a/b/d/file and a symlink is created for dir b ...
Mariam Fayed's user avatar
0 votes
0 answers
39 views

How to skip the first few bytes of a file when using numpy.lib.format.open_memmap?

I am working with a large numpy array that does not fit into memory and that was saved using numpy.save() function. To avoid loading the entire array at once, I am using numpy.lib.format.open_memmap ...
Cristian Tatu's user avatar
0 votes
0 answers
66 views

Certbot cert symlink in container showing up as folder instead of file

I have looked at various threads on similar issues, but could not find a solution to my problem. I installed certbot on my local machine per the snapd instructions and generated certs for standalone. ...
MJoy99's user avatar
  • 31
0 votes
0 answers
21 views

Symbolic link for multiple domains and translations

My plan is to use separate domain for each language like mydomain.com, mydomain.de etc. Instead of making a copy of the project for each domain I would prefer to have one Laravel project at mydomain....
Dave's user avatar
  • 2,684
0 votes
1 answer
280 views

CMake cannot find .so which is symbolic link file

Platform: ubuntu22.04 I'm using cmake to link to a 3rd party library. It looks like: // Those two files are identical. // abc.so is the original file and libabc.so is a copy // ${shared} is an ...
user avatar
0 votes
0 answers
43 views

Extract a tar symlink in jenkins file

I have file.tar.gz of which I made a symlink using ln -sf file.tar.gz link. I want to use this link as a general pointer to what I will be working with later, where I want to extract this file.tar.gz ...
Shaxey's user avatar
  • 13
0 votes
0 answers
24 views

How to create a symlink from /sys/fs/selinux to user space?

Working with SELinux, I would like the /sys/fs/selinux/ folder be soft-linked to /data/sys/fs/selinux on boot, so that during successive reboots I would be working with the same policy file. Is there ...
Vinod's user avatar
  • 1,041
0 votes
0 answers
159 views

Next.js static site - how to separate code and content (including static files) into two projects

I have a static blog built using next.js and hosted by vercel. I would like separate the code and the blog content (markdown files, images, etc) into different repos and make the content repo a ...
John's user avatar
  • 949
0 votes
1 answer
71 views

Git add files in symbolic link directory (windows)

Description For a work project, I have a git directory in C:\_work\project-name for the code. Then I also have a directory for documentation in C:\Users\Local-Admin\OneDrive\project-name. The ...
chraebsli's user avatar
  • 314
0 votes
1 answer
646 views

How to properly copy symlink files

In order to deploy an application, I have to copy the files located in C:\cygwin\dev into my destination folder. Here are the files in that folder, they are symlinks : When I copy/paste the files ...
Jérôme G's user avatar
0 votes
0 answers
80 views

Laravel public to public_html symbolic link gives 404 Error

enter image description here I have deployed my project in to server. When I try to symbolic my project folder with the root public_html folder it gives me a 404 error. I have used following commands ...
LASH's user avatar
  • 11

1
2 3 4 5
50