Skip to content

Instantly share code, notes, and snippets.

@SeriousM
Created August 6, 2014 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeriousM/5b320bc70f3030db9e8e to your computer and use it in GitHub Desktop.
Save SeriousM/5b320bc70f3030db9e8e to your computer and use it in GitHub Desktop.
Unix Symbolic Link

To create a symbolic link, the syntax of the command is similar to a copy or move command: existing file first, destination file second. For example, to link the directory /export/space/common/archive to /archive for easy access, use:

ln -s /export/space/common/archive /archive

To link the runtime control script /etc/init.d/httpd to /etc/rc2.d/S77httpd, use:

cd /etc/rc2.d ln -s ../init.d/httpd S77httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment