A soft link is a pointer to a file, directory or a program located in a different location. A hard link can point to a program or a file but not to a directory.
If we move, delete or rename a file, the soft link will be broken. But a hard link still remains after moving the file/program.
We use the command ln –s for creating a soft link. But a hard link can be created by ln command without –s option.Read the full book at www.amazon.com