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.
329
questions with no upvoted or accepted answers
1
vote
0
answers
178
views
OS X Lion : Remove some users folders an replace them by a symbolic link
I have copied my music, movies and pictures folders to another drive and created symbolic links in my user folder that point the new location.
The links do work, but I cannot remove the original ...
1
vote
0
answers
2k
views
Windows 7 Symlink to network drive root
My Ubuntu server provides storage to my Windows 7 workstation through the use of SMB and network drives. One symlink currently links from a network drive to my iTunes library folder. Within that ...
1
vote
1
answer
268
views
Find symbolic links
I'm awared that find -L or find -type l would find all symbolic links on a given path.
But I'm trying to find all symbolic links that points to my foo folder.
Any tips?
1
vote
0
answers
263
views
Flatten symlink for Virtualbox Share
I have a Virtualbox machine that I use for development, and I mount a directory for a project I'm working on within it. This directory has symlinks to a few other directories around my host file ...
1
vote
0
answers
202
views
Soft link to a Excel sheet created in Unix is displayed as a Folder in Window
Created a Softlink for a Excel sheet using the following command, in Unix shared file system.
temp$ ln -s temp1/Main.xlsm Link.xlsm
But when I view the temp directory in Windows, Link.xlsm appears ...
1
vote
3
answers
1k
views
What can I not symlink/mklink in the windows folder (i.e. prevent booting)
I have a huge project. I got the scripting down. The script dumps to a .txt file a list of all files under or over a certain size. I then move the files to another hd (depending on how I setup my ...
1
vote
0
answers
900
views
vim does not preserve symlink over sshfs
I'm having some trouble with symlinks and sshfs. I use the '-o follow_symlinks' option to follow symlinks on the server side, but whenever I edit a symlinked file on the client side with vim, a copy ...
1
vote
1
answer
1k
views
how to create symbolic link to all my sub folders to another folder?
I know I can use for loop for it but it will fail when any new folder will come, if is there any good alternative to create symbolic link of all my sub folder which can take care if any new folder ...
1
vote
2
answers
1k
views
Auto-symlink contents of directory in my home directory?
So I'm a dual-booter. I'm looking for an easy way to keep up-to-date symlinks in my Linux home folder pointing to every file and folder in the root of Windows personal directory.
So, say I have foo....
1
vote
1
answer
480
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 ...
1
vote
1
answer
2k
views
How to create symlink on OSX?
I would like to have 2 folders with almost the same content - all subfolder, all files should be the same except 2 files. If I change something in one folder (file content, create new file, delete ...
1
vote
1
answer
2k
views
rsync --remove-source-files and symbolic links
My source folder contains only symbolic links to different directories:
symlink1 -> /path/to/dir1
symlink2 -> /path/to/dir2
I want rsync to delete synch'd links from the source on success. I ...
1
vote
2
answers
2k
views
How do I give myself privilege to create symbolic links on Windows 7 logged in as domain user?
I would like to be able to use mklink without the inconvenience of right-clicking on cmd.exe and choosing "Run as Administrator". I am logged in at work as a domain user with local admin privileges, ...
0
votes
0
answers
37
views
Optimal way to link cache folders into different location
I use Arch Linux and I have spare m.2 SSD which I use for SWAP, but I have huge space left which is unused, so I would like to use it for cache / temp files too (so I can save some writes on my ...
0
votes
0
answers
62
views
Build documentation that is behind symlinks
I've built an internal documentation site using Material for MkDocs but I would like to provide multiple project readmes by symlinking folders from their own git repos into the docs/ folder. That is, ...
0
votes
0
answers
33
views
What causes an application on one PC to be able to open OneDrive "files" but not on another PC?
I have an application that uses files I have sync'd with OneDrive.
On machine A, when I launch this application (Blender 4.0, as it happens) and use the application's "File->Open" menu to ...
0
votes
0
answers
69
views
Make symlink contents available to users from group
I have a directory /data which belongs to the tct-data group. I also have an external drive connected through the USB mounted in /media/tct/external_drive. I want to create a symlink inside /data ...
0
votes
1
answer
205
views
Difference between /D and /J options for mklink command when syncing folders to OneDrive
I want to sync a large folder on my Windows machine to OneDrive without duplicating it on my local drive. I have read two tutorials suggesting using the mklink command to create a link between the ...
0
votes
0
answers
402
views
ln: failed to create hard link | No such file or directory - Even when file exists
Running Ubuntu 22.04.3 LTS using a Samba share (Version 4.17.12-Debian) running on Proxmox.
The command: ln "/mnt/drive/downloads/movie.mkv" "/mnt/drive/movies/movie/movie.mkv"
The ...
0
votes
0
answers
105
views
Mount but exclude one subfolder?
I have a Synology NAS in which I use the following command at NAS startup to create a symlink, which works fine:
mount --bind "/volume1/SourceFolder" "/volume1/SymlinkFolder"
Now I ...
0
votes
0
answers
24
views
crontab tar archive on macOS not recursive
I have a script to archive a directory on macOS:
#!/bin/sh
BACKUPNAME=$(date "+%Y-%m-%d@%H:%M:%S")
BACKUPNAME="local-vaults-$BACKUPNAME.tar.gz"
tar czfh "/Users/henrik/...
0
votes
0
answers
261
views
Desktop,Music and Public folder in the Home directory gets Link (broken) (inode/symlink) on opening a pdf in the Home directory.How do I fix it?
Yesterday I shut down my laptop and it took an exceptionally long time to shut down after lots of messages being displayed by the OS(Ubuntu 20.04.6 LTS) on shutdown.
Today,when I started my laptop it ...
0
votes
1
answer
2k
views
mklink gives message "invalid switch"
So I'm trying to move Whatsapp Desktop's media folder from C drive on Windows 10, where I have limited space, to E. I closed Whatsapp (also via the task manager). I moved the media directory to E, and ...
0
votes
0
answers
50
views
Make contents of folder A visible inside folder B?
Requirements
I'm looking for a way to create folders with this behavior:
All content of folder A automatically appears within folder B
Changes in folder A (creating, modifying, deleting) are ...
0
votes
0
answers
233
views
Chrome --user-data-dir over shared network, possible?
Is it possible to open Chrome with the user data directory on the shared network drive specified?
The background why I'm trying this is: I have two computers. I use one mainly and the second one is ...
0
votes
0
answers
227
views
tar:java/xxx:Cannot create symlink to : java/xxx : Permission denied
OS: Chromeos 114.0.5735.205 (Official Build) (32-bit)
Kernel:Linux penguin 5.15.108
Architecture:aarch64
trying to install jdk ,
I ran :
tar zxvf jdk-20_linux-aarch64_bin.tar.gz --no-same-owner
got ...
0
votes
0
answers
294
views
In chrome bookmark bar, is there a mechanism or extension to "symbolic link" to a bookmark folder?
I've experimented with various structures for my bookmarks bar and found that shallow trees work much better for me. To that end my top level bookmarks bar is filled with short names with more ...
0
votes
0
answers
18
views
Hard Links Not Updating when I Rerun STATA script
I have created a hard and symbolic between the output file for one STATA script to the input file for the next script. I would like that when I run the first script and the output file is updated the ...
0
votes
0
answers
209
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
...
0
votes
0
answers
266
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 ...
0
votes
0
answers
24
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 ...
0
votes
0
answers
222
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 ...
0
votes
1
answer
312
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 ...
0
votes
0
answers
237
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 ...
0
votes
0
answers
920
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 ...
0
votes
0
answers
483
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/...
0
votes
0
answers
73
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 ...
0
votes
2
answers
1k
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
...
0
votes
1
answer
300
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 ...
0
votes
1
answer
160
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 ...
0
votes
0
answers
72
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 /...
0
votes
1
answer
280
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 ...
0
votes
0
answers
976
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 ...
0
votes
0
answers
106
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 ...
0
votes
0
answers
285
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 ...
0
votes
0
answers
246
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 ...
0
votes
1
answer
908
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. ...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
26
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 ...
0
votes
0
answers
557
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 ...