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

Ubuntu_Zesty

Fixing Ubuntu 17.04 apt-get update Release file not found

Ubuntu 17.04 has reached its end of life on 13 January 2018 Are you stuck …

Come on join the discussion

avatar
  Subscribe  
Notify of