Eric Leung Code, Data, Microbiome     About     Blog     Archive     Feed

The ln Command

Reading Time: 5 minutes

The 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.

Where does ln come in?

The 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.

... Read more

Introduction to GNU Parallel

GNU parallel is a shell tool that allows you to execute jobs in parallel on one or more computers.

... Read more

Linuxbrew - For When You Don't Have Root Access

I have access to a Linux server, but I inconveniently do not have any root access. This means that installing software was a bit of a pain, because I could not use the usual apt-get command. Luckily, after many months of not using the server because I do not have root access, I have found the solution: Linuxbrew.

... Read more