creating symlinks

2019-11-15

 | 

~1 min read

 | 

87 words

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


Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!