Reading Time: 5 minutes
ln command, whose function is to make links, confused me for the longest
time. Here I will give an explanation of how this command works and why I will
find myself using this in the future.
How are files linked to your hard drive?
Before going into what links are, let me briefly take you back to how data is stored. Every file on your computer is linked to a physical place on your hard drive with a particular address, like for your house. This address is unique to your files so that your computer can map your hard drive to the file on your desktop.
ln come in?
ln command allows you to make “copies” of your data on your computer
without taking up extra room. For example, I have a project where there are
large data files in another directory but I would like to call everything within
my own project folder to make it easier on my scripts. I could copy all of the
data to my own folder but that would make unnecessary duplications of the data.
Here is where
ln comes in.