November 15, 2019
To create a symlink, you need only one command:
$ sudo ln -s /path/to/original /path/to/destination
For example, on Ubuntu, the package for Node.js is
nodejs to run node would get old, let’s create a symlink:
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
A quick summary of what’s happening:
lnmakes a link between files
-sis the flag for a “symbolic” link
To read more, in your terminal, see the manual page for
$ man ln).
Thanks for reading! My name's Stephen Weiss. I live in Chicago with my wife, Kate, and dog, Finn.
Click here to see the archives of my weeks in review and sign up yourself!