[Linux] Hard link and Symbolic link on Linux

Hard Link

Link file has the same inode as the original file.
Its really weird even to call it a link, because its like having the real file somewhere inside the physical memory and having two files referring to that part of the memory.

* Cannot refer to a directory

Symbolic Link

Link refers to the name of a file it refers to.
When the original file is gone but if you put a file with same name there, it would work fine.

* Commonly used to refer to .so file for updating etc.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.