Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
This has been mentioned in this question here:
What's the difference between alias and link?
But I am not even sure what I am looking for. I wish to create a hard link of the type where if a program 'uses' it in the specified directory, it will actually use it from the other central location.
Does something like that exist? For example, would I create ln /path/from/file /path/from/file?
The above command does something like it I believe.
asked Jan 18, 2015 at 17:56
28111 gold badge33 silver badges1111 bronze badges
Both hard links and symbolic links link a path to a destination, however there is a substantial difference you should be aware of:
- Hard links link a path to a file. This means that if you rename/move the destination file, the hard link follows.
- Symbolic links link a path to a path. This means if you rename/move the destination file, the link is broken. However, later replacing the file with a different one will make the link work again.
Links of both types are made with the ln tool. Hard links are made without any options, whereas symlinks are made with the
For more information on constructing the command, see:
answered Jan 18, 2015 at 18:42
195k4444 gold badges339339 silver badges464464 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged