Tagged Questions
0
votes
1answer
85 views
Create a Symbolic link to the merged contents of 3 folders
I have 3 folders with large amount of data in each which has to be maintained seperately. Can I create a sym link or shortcut.in windows which should show me the merged contents of the 3 folders. I am ...
2
votes
1answer
152 views
Directory of dereferenced symbolic link?
In shell script, how can I dereference a symbolic link and get the directory of the file it links to?
0
votes
1answer
56 views
Should programs follow symlinks?
A program that recursively traverses a directory tree, needs to figure out what to do about symlinks (and/or junction points on Windows), to avoid going into an infinite loop when a symlink points to ...
1
vote
1answer
103 views
Is there a fast method of changing directory to a symbolic links parent or source?
Say I have folder stucture:
|- dir1/
| |- sub1/
|
|- dir2/
|- sub1link -> /dir1/sub1/
and my current working directory is sub1link, is there a quick way to either:
change directory to ...
2
votes
2answers
225 views
shell utility to check if directory is an ancestor to a file
How can I check that a given regular file of path f is a descendant of a directory of path d. If not for symlinks, I would just check if d (with a trailing slash) is prefix to f.
Now with symlinks ...
1
vote
1answer
768 views
Ubuntu symbolic link the content of a folder
I have two folders such as
nonserved/
folder1/
folder2/
and a served folder via Apache
media/
js/
css/
img/
In the end, I want to include/append contents of /nonserved to ...
8
votes
3answers
492 views
Figure out what non-symlink path would be?
On Linux, if I've cd'd around and am now in a directory, is there a way to figure out what the real path to that directory is if I had not used a symbolic link to get there?
Consider:
$ pwd
...