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

rsync follow links and and use recreate path of the file the link points to in dest

I have a directory of symlinks A/ pointing to actual files in dir contents/. Symlinks in A/ can be deleted but files in contents/ are never deleted. For example A/ looks like: A/ --B/ --link1 -...
0
votes
0answers
104 views

mkdir in symbolic link to windows mount points to own directory

I'm currently using Windows Subsystem for Linux to run my linux programs, whilst configuring my home directory I decided to link my Windows Documents folder in it to easily access my data. However ...
8
votes
1answer
8k 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. ...
0
votes
1answer
237 views

How do I change the Dropbox (for Business) location on a headless Linux server

Im trying to adjust the path Dropbox syncs to on a headless installation. I use a Synology, so there`s no way to connect a monitor. By default Dropbox syncs all data in /root/Dropbox (Company_name). ...
0
votes
2answers
304 views

Linux symlinks to directories

I created a symlink in my home folder to another directory: $ pwd /home/user1 $ ln -s /usr/local/dir/ shortcut $ ls -l ................................... shortcut -> /usr/local/dir/ $ cd shortcut ...
0
votes
0answers
292 views

Compress symbolic links on Windows 10

Using Windows 10. I have a directory with some symbolic links (or "soft links" or symlinks, if you prefer). The symlinked files/folders were created using mklink [/d] commands. I want to compress ...
1
vote
1answer
2k views

Enable symlink for nginx config files

I have NGINX running on CentOS7. And I would like to share the /etc/nginx directory between Linux and Windows. The reason is that, I don't want to access the file every time I need to change/add ...
0
votes
1answer
89 views

Is there any way to mirror “overlay icons” onto a symbolic/junction link folder and all it's files?

I have an issue where Dropbox decided to rename my Dropbox folder from Dropbox/ to Dropbox (Personal)/, but I have way too many paths setup to the original Dropbox folder to where this change has ...
0
votes
0answers
1k views

Windows symbolic links and Dropbox/OneDrive

OS: Windows 10 I created a symbolic link inside my Dropbox folder for a folder stored elsewhere: E:\dropbox mklink /D NewLink E:\testLink I looked into Dropbox and saw that the linked folder and all ...
0
votes
0answers
26 views

Got a new hard drive, old one is dying - can Windows tell me when I'm writing or reading from the old one with symlinks?

Bear with me, as this is a little convoluted. I have a 1 tb hard drive that I've been using for over 6 years with most of my, let's just say, 'entertainment' of various sorts being written to and read ...
0
votes
1answer
650 views

Symbolic links vs Junction vs Mapped drive

I want to know what the 'proper' way to have files always be connected and available for use that are on a network drive. I have a problem with Quickbooks (badly developed, I must say) where it gives ...
0
votes
0answers
253 views

Remove My Documents junction points?

AT home, I have a few notebooks of different vendors. All have Windows 7. On a few of them, there are NTFS junction points in my home directory. For example: C:\Users\xxx\Anwendungsdaten (...
2
votes
2answers
8k 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 ...
0
votes
3answers
222 views

following another user's symlink

How does one traverse a symlink owned by another user? On my ubuntu box, I have a symlink: root@anonymous:/var/tmp# ls -l total 24 lrwxrwxrwx 1 lab lab 26 Dec 15 18:27 blank.zip -> /home/...
1
vote
1answer
56 views

Symbolic link to other device

If I have a symbolic link in a directory on a physical drive that points to tmpfs RAM partition, and I write to the symbolic link will the physical experience an writing? I'm going to being down a ...
1
vote
3answers
113 views

Vim doesn't highligh syntax of links

I have a markdown file with the .md extension as "Personal Note.md". I make a symbolik (soft) link of it by ln -s command in Linux as "Note". I open the link with vim, it successfully traces the ...
1
vote
0answers
27 views

Possible to use a symlink, junction, or similar to make one folder mirrored to multiple locations on Windows?

I have surveillance camera software that saves to a particular directory on a PC. I'd like to be able to somehow make any files saved to this folder simultaneously save to both the original folder, ...
0
votes
0answers
105 views

Symlink for one process

I have a program which expects a legacy sound device (oss) to be present (/dev/dsp). The system I'm working have several of these present (/dev/dspX). How would I go about creating a program / ...
0
votes
1answer
4k 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:\...
4
votes
2answers
3k views

Creating symlink for a file on Windows 7 gives error

I want to create symlink to a file using the command prompt on Windows 7. The file is located on E partition and i want the link to be on C partition. I tried this command: C:\>mklink /d c:\11.txt ...
1
vote
0answers
322 views

when using rsync --copy-links, rsync ignores symlink name changes

We're using symlinks to create "virtual" folder/file trees using content from all over the disk. In essence we have a mess and a script will create an organized file tree by creating symlinks to those ...
1
vote
1answer
371 views

Search path of symlink's source file

I have my main script which sources a bash file in the same folder: $ cd $ mkdir mysrc && cd mysrc $ echo -e 'MY_LIB_NB=123987' > mylib.sh $ echo -e '#!/usr/bin/env bash\nsource mylib....
0
votes
1answer
323 views

Deleting Ubuntu folder symlink deletes target folder's contents when done via OSX & Samba

I have a problem where deleting a folder symlink on a mounted Samba share also deletes the target folder's contents when accessed from my Macbook. This is actually a problem I have had for many years, ...
0
votes
1answer
43 views

How can I make the content of multiple folders appear as one virtual folder or drive letter?

I have been wanting to do this for a while now and have looked up union FS and symoblic links and all sorts of filesystems like ZFS. But I am not so sure that my needs are that complex I just can't ...
1
vote
2answers
59 views

Why does $0=/bin/foo when /bin is a symlink

I installed my bash scripts into /usr/bin/app.sh and /usr/bin/lib.sh app.sh includes source "/usr/bin/lib.sh" and lib.sh includes if [ "/usr/bin/app.sh" == "$0"] ... When I run app.sh from the ...
0
votes
1answer
85 views

Can not open a file when traversing a symlinked directory

Nginx is failing to start with the following error: nginx: [emerg] ModSecurityConfig in /usr/local/server/nginx/conf/nginx.conf:133: Cannot open config file: /usr/local/server/nginx/conf/../base/base....
1
vote
3answers
671 views

Installing Dropbox locally with home directory on NFS

I'm in a shared compute environment at work, and for good reason IT doesn't want my Dropbox folder to be on the NFS. My Ubuntu desktop's home drive (/homes/mylastname) is on NFS, but I have fast ...
0
votes
0answers
65 views

Restore program files on Symbolic Linked OS with Junction?

Is there a way to restore Windows Registry, Paths and confguration if I have a NTFS-Junction link to Program Files, Program Files (x86), ProgramData and Users? I'm wondering if I can fully restore my ...
1
vote
1answer
190 views

Automatically symlink directory files into another directory

Anytime I add something to ~/config/, I would like it to be symlinked into ~. I don't want to run ln -s every time.
0
votes
0answers
95 views

Is it safe to delete dead symlinks on OS/X?

Running a routine check on OS/X: sudo find -L / -type l reveals a lot of broken symbolic links. Many of them are in /Library or ~/Library. Quite some there in application settings. Is it safe to ...
0
votes
1answer
327 views

Rsync copy symlinks and exclude subfolder

I'm trying to use rsync to copy a directory recursively, and copying symlinks referent. I also want to exclude certain directories that are located within the symlink. This is the part that's not ...
0
votes
0answers
88 views

Wget doen't work in /etc/cron.d/ using symlink? (I have a Raspberry Pi)

I have a cronfile in /home/pi/path/ and made a symlink into /etc/cron.d/cron_some_file. I want to update the cron file automatically (I want to make changes from the server so I won't have to access ...
3
votes
3answers
5k views

Vagrant shared folder and symbolic links under Windows 10

I have a vagrant box with Linux inside under Windows 10 (VirtualBox 5.1.4, Vagrant 1.8.5). I'm working with the Git Bash as normal user. Inside the vagrant box I cannot create a symlink: c:/path/to/...
1
vote
1answer
633 views

hotplug script in Tomato Shibby

I use Advanced Tomato on my Asus RT-AC68R/U. This is Shibby Tomato with some GUI modification only. I want to connect via USB measuring unit and create for it dedicated, unique device. At this moment,...
0
votes
1answer
106 views

On MAC OS, if I want to save a file to folder B, but point it to folder A, what should I do?

I'm not sure what title to give to this question, but what I want is: when I save a file to folder A, it will automatically save it to folder B, and delete it from folder A, what should I do to make ...
3
votes
1answer
603 views

Why do symbolic links in /proc/$PID/fd/ act as hard links?

When the target of a symbolic link is deleted, it points to nothing and there's no way to get to the content of the deleted target. Files in /proc/$PID/fd/ are displayed as symbolic links, but they ...
0
votes
1answer
317 views

Tried to delete symbolic link on WSL from Explorer, now cannot delete

I was trying to delete a symbolic link from /usr/local/bin from Explorer (I'm using WSL), and now I can't delete it at all. When I try to delete it from CMD or Bash, it says "Permission denied." When ...
1
vote
1answer
1k 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 ...
2
votes
1answer
97 views

Symbolic Link File Information via Command Line on Windows

Is there any way to grab symbolic file information (or metadata?) via Command Line tool on Windows like that:
0
votes
1answer
251 views

Can i use hard or symbolic links on a DVD which needs to be Mac and Windows readable?

I'm producing a DVD and want to try to save some space to fit it onto a single-layer disk rather than dual-layer. There are a lot of repeated files on there and it occurred to me that I could have a "...
2
votes
3answers
520 views

Make program able to run from terminal command

Having program in /home/user/Downloads/program/main I can launch it by following command cd /home/user/Downloads/program && ./main or from GUI. What I want is to launch it from terminal by ...
3
votes
3answers
67 views

How to use test -h or test -L on OSX?

I'm trying to detect in a shell script if a file is a symlink pointing to a directory. This is what I'm doing: if [[ -L "$out_dir" && -d "$out_dir" ]] then echo "Dir is a symlink" else ...
1
vote
1answer
2k views

Windows 10 mklink Program Files folder

I want to create a symbolic link with the mklink command so that when I need to reinstall my OS (Which happens frequently (And this morning)) I only need to format the partition that Windows 10 is ...
0
votes
1answer
2k views

Windows 8.1 - mklink to a folder with files in it

I have a directory 'dir1' with some files in it and a directory 'dir2' where I'll add some files. How can I create a link/junction (or just connect them)? I tried "mklink /D (or /J) dir1 dir2" but ...
4
votes
0answers
142 views

Why does setting CYGWIN=winsymlinks:nativestrict break zsh's (oh-my-zsh) history?

I have this in my .zshrc CYGWIN=winsymlinks:nativestrict When I source .zshrc or start the terminal. I get this error: zsh: locking failed for /home/r892107/.zsh_history: no such file or directory: ...
1
vote
1answer
478 views

Scrapy using older version of OpenSSL

I am running into errors because my Scrapy is using an older version of openssl (OpenSSL 0.9.8zh). I upgraded my openssl version (1.0.2h) using brew install openssl but I don't think Scrapy is using ...
1
vote
0answers
287 views

Directory Symbolic Links do not appear in Start Menu/All apps on Windows 10

In windows 7 I had a folder in "C:\Users\myusername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs" that was a symlink to a UNC path on a network share. That folder (and the programs inside it) ...
3
votes
1answer
6k views

MKLINK (symbolic link) not working

I am trying to create a symbolic link on my Windows 10 64bit to redirect the iTunes backup file to my external hard disk (D:\) This is the link I added in my command window: mklink /J "%APPDATA%\...
1
vote
1answer
46 views

Symlink prompting “Open with” [duplicate]

I can create a symlink: > mklink bravo.png alfa.png symbolic link created for bravo.png <<===>> alfa.png However this is on a virtual machine. For some reason if I create one on ...
14
votes
2answers
18k views

7Zip Cannot create symbolic link, access is denied to libhdfs.so and libhadoop.so

I am working on Windows 10 and trying to install Hadoop I downloaded it from here. When trying to extract Hadoop for files (libhdfs.so and libhadoop.so) I am getting the error. Cannot create ...