Imagine I have a directory
/home/me/dir
and a symbolic link to it called
/home/me/dirlink
now if I enter dirlink and use pwd, it of course prints the 2nd one. Is there a flag to make it resolve the symlink and print the 1st one?
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.
Quote:EDIT: the /home directory already exists. Can I make a symbolic link to/from a directory that already exists?In ... [by TrevorH]
Hi,
I am trying to make symbolic link:
ln -s /home/application /application
where /home/application is NFS mounted file. I got follwing error:
ln: creating symbolic link `application': No such file or directory even in su mode.
Any idea?
Thanks.
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
Say under directory /usr/local/boost_1_52_0/stage/lib, I have a symbolic link: libboost_timer.so, which points to the regular file libboost_timer.so.1.52.0 in the same directory.
How can I cp the symbolic links to directory /usr/local/lib while pointing to the same file /usr/local/boost_1_52_0/stage/lib/libboost_timer.so.1.52.0.
I have searched and tried several options.
Say under directory /usr/local/boost_1_52_0/stage/lib, I have a symbolic link: libboost_timer.so, which points to the regular file libboost_timer.so.1.52.0 in the same directory.
How can I cp the symbolic links to directory /usr/local/lib while pointing to the same file /usr/local/boost_1_52_0/stage/lib/libboost_timer.so.1.52.0.
I have searched and tried several options.
I'm in directory ~/a which is a symbolic link to ~/b/c. My prompt looks like:
~/a$
But I hope to cd to ~/b/c.
~/a$ cd .
~/a$
It doesn't work. What's the right way?
I've set up a SSH server which I've let some friends log into, both via SSH and FileZilla. I put a symbolic link to two hard drives in their home directories so that they could access some files.