I'm reading a linux book right now, it's called "The Linux Command Line." I ran into the concepts of hard links and soft links. It says that when we create a hard link, we create an "additional directory entry for the file." So then, does that mean that it makes a new entry in the folder for the link that links the two files? I know hard links between two files, the two files both have to be on the same disk partition. From my understanding, hard linked files can only link to other files.
Soft links: creates a separate file so that when you write to one file, yes it writes to the other because the link file is a separate program that tells it to do so, but it is a lot like a windows shortcut where you click on a shortcut to a file and it opens that other file. Thus, if a soft link is deleted, its like deleting a windows short cut in that it won't delete the file. Hard links will delete the file with the deletion of the shortcut.
Am I right?