Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
What is different symbolic link with hard link after unlik?
Symbolic links vs Hard links

I'm a new user to Ubuntu. And I do install some software. I see many tutorials uses symbolic link to a directory. Like this :

ln -s

Are there any advantages of using this way? Or it is the way it should be done?

share|improve this question

marked as duplicate by Nitin Venkatesh, Alvar, jokerdino, Eliah Kagan, Thomas Ward Jul 11 '12 at 14:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Compared to what? Question is too short and vague to be answerable. – psusi Jul 11 '12 at 13:37
Indeed. You need to clarify the question. – mikewhatever Jul 11 '12 at 13:39

A symbolic link is a special file type whose data contains a filename. This filename is essentially a "soft link" to another file. Whenever the kernel encounters a symbolic link file type, it reads the filename in the data part of the file and goes to that filename. It's as if the Kernel traverses the namespace for the user. Symbolic links are nice in that they are links at the namespace level rather than at the block level (like hard links)1

1Source:Read Seas

Symbolic links can do 2 things:

  • Link to files across file systems (since that it's an indirect link)

  • Link to directories

Symbolic links are done using the ln command with the -s option.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.