Home / Tips / Web and Server / How to symlink a file in Linux?

How to symlink a file in Linux?

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

ln -s TARGET LINK_NAME

Where the -s makes it symbolic.

Like
Like Love Haha Wow Sad Angry

Check Also

How spam filters generally work

TL;DR: You shouldn’t use “trigger words” like “FREE!” or “BUY NOW!!!” in your content. But …

Come on join the discussion

You can contribute by commenting

Notify of
avatar
wpDiscuz