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?

nbro
  • 15,395
  • 32
  • 113
  • 196

1 Answers1

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.

bot47
  • 1,458
  • 3
  • 18
  • 36
  • Aliases are OK if you use your disk only on OSX. Aliases are transparent for applications. – bot47 Jun 10 '11 at 20:37
  • 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. – bot47 Jun 10 '11 at 20:41