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.

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

2458 questions
1
vote
1 answer

Delete a symbolic link when the original folder is deleted

I was thinking of using inotifywait to watch the original folder where the original folders are in, then whenever it detects that a folder has been deleted, then delete the same symbolic link in the other folder. So my question is, is that the best…
Mint
  • 14,388
  • 30
  • 76
  • 108
1
vote
1 answer

Accessing static symbolic directory in rails

In rails 3.1 I was able to put a symbolic link to a directory of html pages in my public folder and it worked. Now in rails 3.2 it gives me a 404 not found page when I try to open any of those html files. What changed in rails 3.2 that now blocks…
Eric Coulthard
  • 500
  • 6
  • 20
1
vote
2 answers

Emulating symlink-like behaviour in a source control repository

Suppose I have the following (desired) folder structure: *CommonProject *Project#1 ----> CommonProject(link) *Project#2 ----> CommonProject(link) Where the CommonProject is the location of the source belonging to that project, and…
Alex K
  • 10,835
  • 8
  • 29
  • 34
1
vote
2 answers

a recursive function to manipulate a given path

I am working on modifying the didactic OS xv6 (written in c) to support symbolic links (AKA shortcuts). A symbolic link is a file of type T_SYM that contains a path to it's destination. For doing that, i wrote a recursive function that gets a path…
Eyal
  • 1,748
  • 2
  • 17
  • 31
1
vote
0 answers

symlinks on apache (centOS)

I have a VPS for hosting sites and I'm trying to get Apache to follow symlinks but cannot figure it out. I've Googled for the past couple hours and everything seems really confusing. I don't know anything about htaccess mod_rewrite engine so that's…
twistedpixel
  • 1,212
  • 4
  • 14
  • 33
1
vote
3 answers

how to create a symlink on windows act as the original Documents and Settings dir?

I've read a lot of about symlinks (symlink, junction, hardlink, etc.) and download a few software to create symlinks (symlink creator, link shell extension) but I can't create a symlink that acts as the original Documents and Settings folder! So, in…
erkage
  • 110
  • 3
  • 14
1
vote
5 answers

How to remove and re-create an existing symlink in one single command?

I have a symlink for my live server called current and I have releases in the releases directory, i.e current -> releases/2012-05-08_15-13 If I want to update the symlink of my current directory, I have to unlink/rm it and re ln -s it. My question…
mmrs151
  • 3,924
  • 2
  • 34
  • 38
1
vote
0 answers

How do I show a target name for an unavailable symbolic link?

I have added support for Windows symbolic links in our application using the CreateSymbolicLink function. Our application stores data across a set of actual folders. Our users needed to store some folders outside of one main root folder. The…
Mark Elder
  • 3,987
  • 1
  • 31
  • 47
0
votes
1 answer

Relaunching an already launched application

I have created an application for Mac OS X, and I have a desktop shortcut for it (created using ln -s). Now I want to add a feature such that whenever this shortcut is double clicked, with the application already running, some action should be…
ping localhost
  • 479
  • 3
  • 22
0
votes
2 answers

symlink outside root directory

Ok, I am trying to create a symbolic link using php symlink() function, but am not fully understanding it. Here is what the issue is. I have several folders on a network share that has been mounted in the following…
Adam J
  • 506
  • 3
  • 17
0
votes
1 answer

How the condition to check whether the link's size in a symbolic link file is too big, works in this code?

Here is a piece of code from the lib/xreadlink.c file in GNU Coreutils.. /* Call readlink to get the symbolic link value of FILENAME. + SIZE is a hint as to how long the link is expected to be; + typically it is taken from st_size. It…
bhuwansahni
  • 1,834
  • 1
  • 14
  • 20
0
votes
1 answer

Multi-domain Subversion Deployment on Media Temple DV

This is a question pretty specific to Media Temple DV servers, but I'm hoping someone out there can help. Our deployment process on a DV server involves ssh'ing in and doing a Subversion checkout into a folder called "svn" and then creating a…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
0
votes
3 answers

linux create symlinks based on most recently modified files

I want to recursively search a directory tree and get the 10 most recently modified files. For each one of these files, i want to create a symlink in my /home/mostrecent/ directory. I know i could solve this with a scripting language, but I'm a bit…
jon
  • 5,986
  • 5
  • 28
  • 35
0
votes
1 answer

PHP/Linux Readfile Path Using Symlink

I want to move my data directory outside of the web root. I have file paths stored in my database and would like to be able to redirect looking for files through a symlink instead of having to change the saved paths. Example, currently I have a…
garromark
  • 814
  • 8
  • 20
0
votes
2 answers

UNIX: symlink in directories when the directory is created and when is not

See: mkdir sym cd sym mkdir one //Create the symlink ln -s one two ls -l drwxr-xr-x 2 lola lola 4096 2012-02-14 07:58 one lrwxrwxrwx 1 lola lola 3 2012-02-14 07:58 two -> one Now, if I put something in one I could reach it in two. For what I…
user935375
1 2 3
99
100