Symbolic link: Difference between revisions

From James's Wiki
(Created page with " To create a new symlink (will fail if symlink exists already): ln -s /path/to/file /path/to/symlink To create or update a symlink: ln -sf /path/to/file /path/to/symlink")
 
No edit summary
 
Line 8: Line 8:


ln -sf /path/to/file /path/to/symlink
ln -sf /path/to/file /path/to/symlink
hard link:
ln /path/to/file /path/to/link

Latest revision as of 19:06, 10 February 2018


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

ln -s /path/to/file /path/to/symlink

To create or update a symlink:

ln -sf /path/to/file /path/to/symlink

hard link: ln /path/to/file /path/to/link