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

Change timezone in Centos 6

Please note that you have to have root access to be able to make the …

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments