Questions tagged [symlink]

166 questions
75
votes
2 answers

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
DucDigital
  • 1,441
  • 3
  • 18
  • 26
60
votes
3 answers

What is the difference between a soft (symbolic) link and a hard link?

I hear that you can now create soft links in Vista too. So, what is the difference between a soft (symbolic) link and a hard link on UNIX/Linux/Vista? Are there advantages of using one over the other? Or do they just serve two distinct purposes?
Aaron K
  • 1,505
  • 5
  • 18
  • 16
28
votes
1 answer

SFTP: file symlinks in a jailed (chrooted) directory

I'm trying to set up sftp so that a few trusted people can access/edit/create some files. I have jailed a user into their home directory (/home/name) but have run into a problem. I want for them to also be able to access other parts of the VPS…
dukevin
  • 1,610
  • 3
  • 18
  • 25
18
votes
3 answers

VirtualBox: issue with symlinks in shared folders

Some time ago there was a thread to exact the same problem: Can't create symlinks in virtualbox shared folders. Now it's closed (why?). So I start a new one, because I've got this issue now and cannot find a solution. Short issue description: By…
automatix
  • 682
  • 3
  • 7
  • 19
13
votes
5 answers

Some GUI for mklink?

Do you know some GUI tool to create Hardlinks/SoftLinks/Junctions?
Click Ok
  • 956
  • 4
  • 12
  • 18
10
votes
3 answers

Move a file and leave a soft link behind

I'm looking for a single linux command that allows me to do the equivalent of this: cp /some/path/file /another/path/ && ln -sf /another/path/file /some/path/ If there isn't one, what's the best way to do this for a bunch of files?
itsadok
  • 1,839
  • 5
  • 21
  • 33
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
  • 339
  • 3
  • 4
  • 10
8
votes
1 answer

SELinux symlinks?

SELinux is not allowing me to change the context of a symlink. I get no errors or anything. It just doesn't change the symlink, which I am guessing means it is resolving the symlink and changing that instead? coderoot is a symlink: chcon -t…
Joshua Enfield
  • 3,404
  • 8
  • 41
  • 58
7
votes
3 answers

MySQL Not Reading Symlinks for Options Files my.cnf

I'm running MySQL 5.5 on Ubuntu. There is a my.cnf file in /etc/mysql/ where I would expect it to be. - Great! For debian installations of mysql it is recommended that you do not edit the my.cnf file. There is an IncludeDir directive in the…
HenryHayes
  • 171
  • 1
  • 3
7
votes
2 answers

What performance issues are there with using symlinks for your Apache docroot

I tried to find an existing question for this already, but couldn't find a good match. As part of my deploy process for my public facing sites, I am using symlinks to swap between versions of the web application. For instance, I have a vhost abc.com…
chadl
  • 95
  • 1
  • 1
  • 6
6
votes
2 answers

rsync to adapt links that have absolute paths to the location at destination

Would it be possible with rsync to adapt the absolute, symbolic links to a new location at the destination? Test case Imagine I have a link pointing to a file like this: /usera/files/common/test_file /usera/files/common/links/test_link ->…
ronszon
  • 163
  • 3
6
votes
2 answers

Can't create or follow symlinks from linux client with a cifs mounted Windows Server 2008 R2 share

Windows Server 2008 R2 NTFS supports symlinks. If I log into the server as Administrator I can create symlinks with mklink, so I know the Admin user has the permissions to do this. If I mount a share onto an Ubuntu 10 client using mount -t cifs -o…
JustinP
  • 861
  • 1
  • 8
  • 8
5
votes
3 answers

Why doesn't ls -la show that current directory is symlink?

This is more of a curiosity, but I noticed /etc/httpd/logs is symlinked to /var/log/httpd, but when I am inside of /etc/httpd/logs and I do ls -la I see: drwx------ 2 root root 4096 Mar 21 14:58 . drwxr-xr-x 9 root root 4096 Mar 17 03:10…
user160910
5
votes
3 answers

Is it an unsafe practice to symlink /etc conf files?

To manage the configuration of a server, I keep some configuration flies (located in /etc) under version control (in the home folder) and then symlink to them from their /etc locations: /etc/someprog/c.conf ->…
5
votes
1 answer

How do I do a bind mount over a symlink?

I have a symlink: /test Which is pointing at a directory: /source I want to do a bind mount to mount /new over /test mount -o bind /new /test However this binds /new over /source (with /test pointing at /source - showing the files from /new, but…
engie
  • 153
  • 3
1
2 3
11 12