Softlinks vs. Hardlinks: A Quick Explanation

Written By
Web Webster
Web Webster
Sep 27, 2010

“I got this question in an email the other day, and I realized
it’s something many people might be unfamiliar with. In Linux,
there are two types of file links, hardlinks and softlinks. Here,
I’ll give a quick explanation of what these types of links are, and
when you should use them.

“What is a softlink?

“Softlinks are the easiest to understand, especially because
you’ve probably already used them. A softlink fills the same role
as a Windows shortcut. Simply put, a softlink is a file that points
to another file. When you create a softlink, you are creating a new
file that exists only as a pointer to a file elsewhere on the
system.

“All links are created with the ln command, using the -s flag if
you want a softlink (if you don’t use -s, you’ll get a hardlink,
which I’ll talk about in a second). The syntax of the command
is:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.