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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store