t/f = link(path,link)
t/f = symlink(path,link)
str = readlink(path)
The link() function creates a hard link to an existing file at path, from the link path given as its second argument (which must be on the same file system). Its semantics are the same as the C link() function and, if successful, it returns true. The symlink() function is similar, but creates a symbolic link to path, from the link path, with semantics as for the C symlink() function. It also returns true if successful.
Symbolic links are, essentially, small files containing the path to which they are linked. The readlink() function returns a string containing that linked path. Its semantics are the same as those of the C readlink() function.