I just wondering myself if it would be possible to create massive amount of symbolic links using a for loop?
For exemple, I have a lot of directory on my /tmp directory (I know, not recommanded) and I do not want to move them out.
Instead I just want to have them on my root directory using symbolic links.
Here is what I did, but unfortunatly, do not work at all:
for directories in /tmp/; do ln
I use Fedrora 13. I'm going to upgrade soon.
I'm trying to create a symbolic link on a NAS which points to another location on the same NAS.
Here is what I did.
C:\> fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1
C:\>fsutil behavior query SymlinkEvaluation
Local to local symbolic links are enabled.
Local to remote symbolic links are enabled.
Remote to local symbolic links are enabled.
Remote to remote symbolic links a
It seems that for many basic functions operating on symbolic links, the physical path is used by default. However, cd works fine. When moving into a symbolic link, cd remembers where I came from so it is utilizing the logical address for the symbolic link (see related post for an example: symlinks and cd).
Functions like ls only partially work this way.
I have multiple hard drives with the same directory hierarchy, for example:
/media/sda/dir1
/media/sda/dir2
...
/media/sdb/dir1
/media/sdb/dir2
Two hard drives with similar names and similar directory names.
I want to create separate symbolic links to dir1 and dir2 on every hard drive.
The easiest way I have found is to use cp -sR:
cp -sR /media/sd*/dir1 /somedir/dir1
cp -sR /media/sd*/dir2 /s
So I'm writing a small package manager, and a problem I've run into is making the symbolic links to files.
It installs the package to /usr/pkg/name-version, and then reads a file to determine what symbolic links to make.
So as an alternative to Recursive scp without following links or creating a giant tar file? (this could be an emergency since the remote files could be deleted any time soon), I'm thinking of deleting all my symbolic links. But then I would like to batch-export them all somewhere so that I can restore them once I'm done with the scp file copying.
Learn how to create and manage hard and symbolic links to files on your Linux system. Explore the differences between hard and soft, or symbolic, links and the best ways to link to files, as opposed to copying files.
IBM Developerworks: "Learn how to create and manage hard and symbolic links to files on your Linux� system. You can use the material in this article to study for the LPI 101 exam for Linux system administrator certification, or just to explore the differences between hard and soft, or symbolic, links and the best ways to link to files, as opposed to copying files."