I am wondering how the internal mechanism of file deletion works on Unix.
If there are some hard links pointing to an actual file, do I need to delete all links in order to delete the file?
If I delete the file, will the hard links be destroyed or deleted automatically?
On the other hand, if I use symbolic links to point to a file what should be done to delete the file?
Finally, the space of the file will be free for another use when all links pointing to it are destroyed. Is that correct?