Tagged Questions
4
votes
1answer
52 views
Can I create a symlink that will ignore subdirectories?
I'm trying to get dropbox symlinked to the relevant folders in /home. I'd like to symlink them like this:
~/Dropbox/Pictures --> ~/Pictures
~/Dropbox/Camera Uploads --> ~/Pictures/Camera ...
2
votes
3answers
113 views
What has happened to the file when I entered “mv file.txt ../”?
I wanted to move 'file.txt' one folder up, but instead of mv file.txt ../file.txt I entered mv file.txt ../.
Now the file is gone and I didn't get any error message. So it seems the some action was ...
2
votes
2answers
84 views
Resolving symbolic links (pwd)
Say I do the following:
cd /some/path
ln -s /target/path symbolic_name
If then do:
cd /some/path
cd symbolic_name
pwd
I get:
/some/path/symblic_name
and not:
/target/path
Is there a way to ...
3
votes
1answer
66 views
Symbolic link starting with .#
I have a symlink in one of my directories that has the following name:
lrwxrwxrwx 1 XXXX ZZZ 37 Jan 15 18:18 .#perl.org -> [email protected]:1344441539
I am wondering what this symlink ...
4
votes
1answer
106 views
Move a file and re-target all of its symlinks [duplicate]
Possible Duplicate:
How can I “relink” a lot of broken symlinks?
Is there any way to move a file to a new location, and then re-target its symlinks to the new location, using a shell ...
2
votes
2answers
133 views
Create a new link to access all files and folders
I get stuck to create a shell script for a new link something like that
link linkPathName orginalPathName
I want to create a link between a new link and original path; however, both can access ...
3
votes
2answers
150 views
open a file using CDPATH and symlink
To quickly move around, I added a path to CDPATH that contains symlinks to different locations. I did this by adding the following line to .bashrc:
export CDPATH=~/symlinks
When working with ...
5
votes
1answer
122 views
Can non-canonicalized forms of filesystem paths be significant? (eg. “foo//bar”, “foo/./bar”, and “foo/../bar”)
I have a script for building a particular flavor of GCC cross-compiler. Throughout the script there are many paths that are not in canonical form, such as duplicate path separators (/xxx/foo//bar/yyy) ...
1
vote
1answer
131 views
How to get a list all the “aliases” of a file (including of type directory) efficiently?
How can one get the list of all the aliases of a file (including of type directory) efficiently, given that a file:
may have multiple hard links, multipe soft links, multi-level soft links
may be ...
4
votes
1answer
257 views
How to replace a symbolic link with an equivalent hard link?
Having a (single, no batch filesystem processing needed) symlink, what a command line to use to turn it into a hard link to the same file?
3
votes
1answer
430 views
How to replace a symbolic link with a copy of a file it links to?
Having a (single, no batch filesystem processing needed) symlink, what a command line to use to replace it with a copy of the file it links to?
2
votes
1answer
264 views
How do I dereference links when extracting from a tar file?
If I have a tar file, bob.tar, which contains real_file and link_to_real_file, in which the latter is a symlink, is there a way to extract the contents of bob.tar so that link_to_real_file will not be ...
2
votes
2answers
298 views
Find incoming symlinks
In Linux, what is the best way to find all symbolic links that point to a given file (regardless of whether the symlink is relative or absolute)? I realize this will require scanning the whole ...