/* Code-Comments */

November 15, 2019

Creating Symlinks

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 (not node).

Since typing 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:

  • ln makes a link between files
  • -s is the flag for a “symbolic” link

To read more, in your terminal, see the manual page for ln ($ man ln).

Stephen Weiss

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!