Linux Lite Forums
[SOLVED] How do you delete a Symlink correctly? - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.linuxliteos.com/forums/forumdisplay.php?fid=20)
+--- Thread: [SOLVED] How do you delete a Symlink correctly? (/showthread.php?tid=2355)



[SOLVED] How do you delete a Symlink correctly? - m654321 - 11-01-2015

I want to delete a symlink between a directory in  /home on sda (where LL's OS is located) and sdb (where data files are located).
Just want to be sure I'm doing this properly and no links are left 'hanging'...

Many thanks in advance for any help
Regards
Mike




Re: How do you delete a Symlink correctly? - Valtam - 11-02-2015

What was the original symlink command you used to make it?

http://www.cyberciti.biz/faq/linux-remove-delete-symbolic-softlink-command/


Re: How do you delete a Symlink correctly? - m654321 - 11-03-2015

Thanks Jerry.
To create the symlink between /mnt/DATA on sdb and /home on sda, I used the following command, where mike is my username:

Code:
ln -s /mnt/DATA/Documents /home/mike
                               






Re: How do you delete a Symlink correctly? - gold_finger - 11-04-2015

You can just open file manager, right-click the symlink and delete it.  That just removes the symlink in /home/mike.  Your Documents in /mnt will still be there when you navigate to /mnt/Documents.


Re: How do you delete a Symlink correctly? - m654321 - 11-04-2015

Quote:You can just open file manager, right-click the symlink and delete it.  That just removes the symlink in /home/mike.  Your Documents in /mnt will still be there when you navigate to /mnt/Documents.

Many thanks for your reply goldfinger - that's really helpful.
Cheers
Mike