View Single Post
Old 11-26-2013, 01:53 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
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
Okay, well, the actual PROGRAMMING behind it... but in terms of usability, that's what it is. The filesystem will cleverly pretend in most cases, that it IS the file.
eschwartz is offline   Reply With Quote