Are symbolic links and aliases the same thing on OS X? [closed]
Asked Answered
K

1

32

I have been trying to set up some symbolic links in the Terminal, and haven't been able to get them to work.

In trying to find what I was doing wrong, I compared their function to the "create alias" button in the right click menu.

My question is this: what is the difference between alias(es) and symbolic links in Mac OS X?

Kosher answered 10/6, 2011 at 20:10 Comment(3)
what's wrong with ln -s /something/what/exists /new/symlink.Ardra
apple.stackexchange.com/questions/2991/…Stud
Here is a great explanation. forums.macrumors.com/showthread.php?t=972404Compression
S
10

While symbolic links are a feature of the file system, aliases are a feature of OS X. I don't know if they still use that technique, but back in the days of Mac OS Classic or even System 7, they were a file with just a resource fork which had a special resource telling the OS what path AND what file-id the file had.

Symbolic links are more like a database entry on file system level. They differ from hard links in the point that they get invalid when you delete or move the target file. Hard links are actual file entries in the file systems catalog pointing to the same location on your storage medium.

Schaffer answered 10/6, 2011 at 20:33 Comment(2)
Aliases are OK if you use your disk only on OSX. Aliases are transparent for applications.Schaffer
This might work. Personally, I moved not only my iTunes Library, but my complete Music folder to a different hard drive using aliases. But yes, soft links are the prettier solution.Schaffer

© 2022 - 2024 — McMap. All rights reserved.