Actions

Create a Symlink

From InfoTechPedia

Revision as of 17:56, 25 February 2018 by TomHutchison (talk | contribs) (improving)

The standard format is: ln -s absolute_path_source_file absolute_path_target_file

To create a new symlink (will fail if symlink exists already):

admin@server:~$ ln -s /home/server/a_directory/file.ext /home/server/public_html/file.ext

To create or update a symlink:

admin@server:~$ ln -sf /path/to/file /path/to/symlink