Quote:
Originally Posted by eschwartz
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