How to Create Symbolic Link in Linux
- Chris Speed
- Nov 23, 2020
- 1 min read
Updated: Dec 26, 2022
ln -sf /mnt/my_drive/movies ~/my_movies
ln -sf my_file.txt my_link.txt
unlink symlink_to_remove
rm symlink_to_remove
Note: To overwrite the destination path of the symlink, use the -f (--force) option.
Reference:
Linuxize.com. Sep 6, 2019 "Ln Command in Linux". https://linuxize.com/post/how-to-create-symbolic-links-in-linux-using-the-ln-command/
Comments