Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 nitstorm, Alvar, jokerdino, Eliah Kagan, Thomas W. 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.

2  
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

1 Answer 1

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.