LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   soft link (https://www.linuxquestions.org/questions/linux-newbie-8/soft-link-4175417372/)

cgirishaanekal 07-18-2012 06:54 AM

soft link
 
Hi

rm -f /usr/local/bin/perl -> /usr/bin/perl

it will remove softlink or permanently delete perl

Regards
Girish

rmugunthan 07-18-2012 06:59 AM

To delete the soft link, don't need to give the source file location also.

Just delete the link using rm command that is enough.

rm /usr/local/bin/perl

cgirishaanekal 07-18-2012 07:10 AM

my doubt is that it will delete perl software ?

rmugunthan 07-18-2012 07:13 AM

no, it will delete only softlink.

ubungu 07-18-2012 07:30 AM

be careful

maybe you will delete source file or folder

You should use unlink

unlink softlink ;)

piyush.sharma 07-18-2012 07:35 AM

Don't worry !
rm -f soft_link
it will remove only link not the source, for you satisfaction just try it yourself
ln -sf ./name_to_any_file ./soft_lik
then
rm -f soft_link

I tried the same.

pixellany 07-18-2012 07:43 AM

Quote:

just try it yourself
this is great wisdom!!

I keep a directory in my ~ called "play". This contains small file and directories that I use specifically to try things and verify how they work, Everything in the directory is expendable, and so I can make mistakes with impunity.


All times are GMT -5. The time now is 09:55 PM.