Hard and symbolic links on linux. What are they?

A hard link a is a mirror copy of the original file.

A symbolic or soft link is an actual link to the original file

If you delete the original file, the soft link has no value, because it points to a non-existent file. But in the case of hard link, it is entirely opposite. Even if you delete the original file, the hard link will still have the data of the original file.

The command to create a hard link: $ ln [original filename] [link name]

And to create a symbolic link: ln -s [original filename] [link name]




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Websockets with React

AngularJS code for when i scrolled to bottom of page

JavaScript Algorithms. Capitalization

Rename all Files in a Folder

How to use styled-components in your React a

How To Setting Prettier in Vetur in VSCode So That Your Vue Code Use Single Quote and No Semi…

Record Audio, Video, Image and GIF from Browser using videojs-record

//platform.twitter.com/widgets.js from Twitter https://twitter.com/UKCareGuide

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tadeo Grach

Tadeo Grach

More from Medium

Andie Tibbits

CS371P Spring 2022: Antoney Ejimadu

#436: The Adventures of Quentin Durward