SubjectSymlinkHardlink
Link BehaviorPoints to the path of the target filePoints directly to the data on the disk (same inode)
File SystemsCan span across different file systemsMust be within the same file system
On DeletionBreaks (dangle) if the target is deletedThe target file’s data persists as long as any hard link exists
DirectoriesCan point to directoriesHard link to a directory isn’t allowed to avoid infinite loops in the file system
PermissionsPermission is different the targetShares the same permissions and attributes as the target file since it’s the same file