Global Feed Post Login
Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

symlinks are a bit complicated, there is hard and soft ones. they basically work like directories that point to a file. the "hard" part is really a logical hard in the sense that if you copy a hard link you don't copy it, just make a new pointer to it, and if you copy a soft link, you only copy the pointer... the main difference between them has to do with cd/pwd stuff. to be honest i don't even remember exactly, except that links to directories are always soft, and files can be soft or hard. maybe you can remind me the exact distinction.

Avatar
semisol 6mo ago

symlinks/softlinks are redirects to another path

hardlinks reference the underlying inode and act like 2 separate files but with the same content always

a hardlink would be 2 directories pointing to the same file event

a softlink would contain a path to another file as a “redirect”

Reply to this note

Please Login to reply.

Discussion

No replies yet.