tonydba
asked on
symbolic link
What are the advantages of symbolic link?
ASKER
for example
/mnt/source
what will happen after a soft link is created.
ln -s /mnt/source/ted.txt one.txt
/mnt/source
what will happen after a soft link is created.
ln -s /mnt/source/ted.txt one.txt
when you type or more or vim or vi or edit one.txt that will read /mnt/source/ted.txt
and one.txt is just a link point to /mnt/source/ted.txt from all linux command
and one.txt is just a link point to /mnt/source/ted.txt from all linux command
ASKER
what command I have to link in another server..?
How will know that a particular file is linked..
How will know that a particular file is linked..
Symbolic links are useful for all sorts of things.
A good example is when you have different versions of software installed. A symbolic link makes it very easy to swap between versions without having to change paths.
Say you have the following:
/usr/software-1.04-b1
/usr/software-1.05-b1
Then you can create a symbolic link /usr/software to point to whichever version of the software you want active.
That way, you just need /usr/software in your PATH, rather than having to manually update the PATH whenever the software version and path changes.
A good example is when you have different versions of software installed. A symbolic link makes it very easy to swap between versions without having to change paths.
Say you have the following:
/usr/software-1.04-b1
/usr/software-1.05-b1
Then you can create a symbolic link /usr/software to point to whichever version of the software you want active.
That way, you just need /usr/software in your PATH, rather than having to manually update the PATH whenever the software version and path changes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes understood.
But some older user just know the old location. And it is hard to tell all user
your file location is moved to NEW , so just your link to point to new location in the old location so that the users doesn't need to know the exact path of the new file location
and they can read all files at New location (even they don't know the file is moved to NEW)
The site explain more
http://en.wikipedia.org/wiki/Symbolic_link
The site is how to make a link
http://www.cyberciti.biz/faq/unix-creating-symbolic-link-ln-command/
Duncan