recurssion via symbolic links without allowing system to act recursively?
I tried looking up combinations of the keywords "infinite loop links" in google before causing a recurring post here... but alas, I couldn't find much.
Cause: I've created an infinite loop, in a way, of directories. Problem:
I'm not sure if this will crash a backup program (trying to backup directories, namely OS X's Time Machine)
I'm not sure if this will crash an app that's trying to index my system (such as Gnome-Do in my Linux system, or Spotlight in OS X)
What I did (in Mac OS X, but I assume it applies to any *nix based system with this command) is created a symbolic link, with ln -s, to another directory. I did this because I prefer using the command line, and a file-manager's "alias"es don't come in handy, since I can't CD into them (shortcuts in Windows Explorer, alias in Finder, not sure how nautilus creates GUI links).
Another thing I like about making a link with the command line (this is key to me), is that once you move through the link and into its destination, you don't have to worry that your parent directory has now changed. Let me clarify: if I'm in the command line and I jump across my file heirarchy using a link, than when I cd ../ back out to continue what I was doing I will be placed in the directory where the link was (not into the destination's parent). attached is an exmaple to clarify this.
this is the recursion I'm talking about:
in an effort to show you the same listing twice (two show you i have two directories linking to each other), it even becomes clear with a final pwd that I am descended recursively down into the directories (probably not a good thing).
bottom line:
will I end up crashing applications (like those I named earlier), by having this? or do most applications not actually follow links (other than some burning software)?
can i get the features I enjoy out of these symbolic links in some other way, without causing this mess? or should I not worry about it and keep doing this?
Thanks in advance! this forum's always been an awesome resource of info for me.
Hi,
- we have copy (cp command) to do to save all the contents of a dty BUT we dont want to copy the files corresponding to symbolic links contained whithin this dty
- the box is a sun solaris one - and the cp commande do not say avything about that?
thanks for help
Jakez (7 Replies)
I am linking a directory as follows:
ln -sf /home/xxx/userid/real_files/* /home/xxx/userid/linked_files
This gives me symbolic links for all the files in the real_files directory in the linked_files directory. My question is, if I go and remove a file in the real_files directory and then go... (1 Reply)
Hi Guys...
I want to create a link using ln -s for a directory that does not exist on the box.
How do I do that?
I had some files from Box A directory /d1/u01 and I copied the files across to another Box lets say Box B on directory /d2/u02.
Now I want a link so that this path /d1/u01... (2 Replies)
Hi all,
I have scoured the entire forum for this but to no avail unfortunately. Basically, I would like to remove my symbolic link from my folder name i.e.
foldername -> /a/b/c/d/f
where f is indeed a folder. I have tried rmdir but this does not work and in actual fact deletes the... (4 Replies)
Hi,
I have a file with more than 1 layers of soft links for it. For ex.
ls -la .profile
.profile@ -> /home/act/.profile_abc
ls -la
/home/act/.profile_abc@ -> .profile_final
I want to get the name of the last file (i.e. .profile_final) when I refer to .profile using shell script. I... (2 Replies)
Hi ,
I have folder which has almost 35000 objects, I need to find out or list the objects which are symbolic links. I tried f. I am not getting right
Can you pls help
Regards
amv (5 Replies)