View Single Post
Old 11-26-2013, 12:43 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,440
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by eschwartz View Post
Linux has something much better - symlinks. It IS the file as far as the filesystem is concerned.
That's not actually true, a symlink in linux is just a plain text file containing the path to the actual file, with a flag in its metadata to indicate it is a symlink.

http://man7.org/linux/man-pages/man7/symlink.7.html

You can read its contents, as opposed to the contents of the file it points to, with the readlink() function

http://linux.die.net/man/2/readlink
kovidgoyal is offline   Reply With Quote