What is the difference between a hard link and a symbolic link?

Brayan Florez
1 min readSep 17, 2019

--

The main difference on first-hand is that hard links link two files so when we make changes either in the original file or in the hard link file both are changed. To clarify, when we remove any of these files the other one stays in.

On the other hand, soft links are an alternative path for the original file. In summary, a soft link represents an alias since it’s totally different from the original file and it does not use inode. When we remove the original file here, the soft link becomes invalid.

Note: The command used for a hard link is “ln” and the used one for a soft link is “ln -s”

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response