Linux

ln

SafeCreate links

ln -s <target> <link>

-s makes a symlink — standard for config switching and compatibility paths. Prefer absolute targets.

Examples

  • ln -s /etc/nginx/sites-available/app /etc/nginx/sites-enabled/Enable a site config

Syntax

ln [-s] <target> <link>

Before you run it

Overwriting needs -f.

Related commands

  • lsList directory
  • statFile status details
  • cpCopy

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store