Questions tagged [symbolic-link]
220 questions
13
votes
2 answers
How to remove 'update-alternatives' links on Linux
Sorry for asking this, but I cannot resolve such a simple issue for a few hours:
I made a typo mistake in
update-alternatives --install /usr/lib64/R/lib/libRblapack.so libRblapack.so /usr/lib64/R/lib/libRblapack_native.so 100
It should be…

user2723490
- 267
- 1
- 3
- 9
13
votes
3 answers
What are possible drawbacks of an IIS 7 site having an NTFS junction as a web root?
I am trying to come up with a way to deploy ASP.NET code with as little site disturbance as possible. One thought was to set up the site to be served from an NTFS junction c:\www\example.com where
c:\www\example.com ->…

jayrdub
- 338
- 5
- 13
12
votes
1 answer
In Windows, is it possible to share a symlink as a network share?
Summary
Is it possible to share a symlink to a network location as a Network Share in Windows? E.G:
D:\folder\Shared\foo on \\server is shared as \\server\foo, where D:\folder\Shared\foo is actually a directory symbolic link to…

dthor
- 303
- 1
- 3
- 10
12
votes
3 answers
Linux Symbolic Linking not working as expected
I have achieved my "goal" several times before but am running into an issue I have not yet experienced before. I have a webserver setup with Nginx on Ubuntu 12.04 LTS. I have my system setup the way I normally would and am attempting to create a…

JM4
- 1,144
- 3
- 18
- 29
11
votes
4 answers
How do I find broken symlinks automatically on Windows?
Not sure if this is bad style, but I'm asking this question here because I couldn't find the answer elsewhere, and then I worked out one solution on my own. I'd be interested to see other people's solutions, but after a few days I'll post my…

HughG
- 251
- 2
- 8
10
votes
2 answers
Why do some host volumes in Docker containers give the error "too many levels of symbolic links"?
I'm running docker with a host directory mounted:
$ docker run -v /usr/groups/thing -ti imagename /bin/bash
Files in /usr/groups/thing/foo are accessible:
# ls /usr/groups/thing/foo
a b c
But files in /usr/groups/thing/bar are not:
# ls…

Peter Westlake
- 806
- 2
- 6
- 17
10
votes
2 answers
Symbolic link and sudo
I create a symbolic link:
ln -s /tmp/folder1 /tmp/folder2
Then I go to /tmp/folder2 and run pwd:
$ cd /tmp/folder2/
$ pwd
/tmp/folder2
$ sudo pwd
/tmp/folder1 # <-- This is the odd part
Why does pwd with sudo give the original directory? I'm…

iDev247
- 751
- 1
- 12
- 23
10
votes
3 answers
how to create symbolic link (ln) between two partitions
I have two partitions on my Ubuntu 10.04.3 server.
partition 1: /mnt/storage/
partition 2: /var/www/myweb/
now when i run the following command
$ ln /mnt/storage/sourcefile.txt /var/www/myweb/linkedfile.txt
i got this
ln: creating hard…

Alaa Alomari
- 638
- 6
- 19
- 37
10
votes
5 answers
How do I find and report on broken symbolic links automatically?
As tidy sysadmins, we like to ensure that the little things are just as well covered as the big things (when time permits). One of these things is ensuring that our systems aren't full of broken symlinks.
Why are these little blighters a problem? …

womble
- 96,255
- 29
- 175
- 230
8
votes
2 answers
Remove symlink with Ansible
I have a dead symlink named dead_symlink under the directory /usr/local/bin
When Ansible check the file it reports it exists
- stat: "path=/usr/local/bin/dead_symlink"
register: dead_symlink_bin
- debug: var=dead_symlink_bin.stat.exists
But when…

tvl
- 369
- 3
- 4
- 10
8
votes
2 answers
Setup symbolic link where users can access it with FTP
I have a folder on a server where a client of mine has a bunch of folders that they upload images and what not for a site, I do a symbolic link to those folders to the root of the website. This way I can give them ftp access to upload whatever they…

dan.codes
- 193
- 1
- 1
- 4
7
votes
2 answers
Best practice to link with WebDAV, as FollowSymLinks doesn’t allow to show symlinks
Symbolic links are a widespread practice on linux to make a ressource (e.g. directory) available in another location without having to maintain several copies of it. This is implemented in many applications, e.g. having a ressources tree and a tree…

Matthias Ronge
- 467
- 1
- 7
- 18
7
votes
4 answers
Linux disk usage analyser that acts like symlinks are real files
I am using git-annex, an extension to the DVCS git, which is designed for handling large files. It makes heavy use of symlinks. The actual large files are moved to the .git/annex directory and the original files are symlinked to there.
I am running…

Amandasaurus
- 31,471
- 65
- 192
- 253
7
votes
2 answers
NFSv4 "Too many levels of symbolic links" error
Both machines are running Ubuntu 12.04
Remote NFSv4 Client
$ ls /mnt/storage/aaaaaaa_aaa/bbbb/cccc_ccccc gives this error:
ls: reading directory .: Too many levels of symbolic links
How can I fix this?
When error occurs ls start listing the files,…

user1434058
- 89
- 1
- 1
- 6
7
votes
6 answers
Can't delete symbolic link
I accidentally reversed the parameters of my ln and called:
ln -s my_link my_dir
where my_dir already existed and my_link did not. I deleted my_dir, but am unable to delete my_link.
If I ls -l my_link's parent directory I get 1 of 2 different…

ben
- 189
- 1
- 1
- 8