TIL: How to Remove and Update a Symlink

1 min read

rm my-link # Remove the existing symlink
ln -s /source/path my-link # Create a new symlink: ln -s [source] [link_name]
Note: In ln -s
, the first argument is the source (the real file or directory), and the second is the name of the symlink you want to create.
That’s it! Simple and useful when keeping things organized in your system or project!
0
Subscribe to my newsletter
Read articles from JayRam Nai directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

JayRam Nai
JayRam Nai
Open edX expert and open-source enthusiast.