Two types of links:
ln
)ln -s
)Hard links are additional directory entries (with a different name)
pointing to the same file. Since a directory table is local to
a partition, hard links can only be made in the same partition (i.e.:
it is not possible to do ln /usr/local/bin/bash /bin/bash
if
/usr/local
and /
are two different partitions.
Hard links cannot be made on directories.
Symbolic links are files in the filesystem which point to another file or directory anywhere in the filesystem.