LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2012, 07:54 AM   #1
cgirishaanekal
LQ Newbie
 
Registered: Nov 2011
Posts: 26

Rep: Reputation: Disabled
soft link


Hi

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

it will remove softlink or permanently delete perl

Regards
Girish
 
Old 07-18-2012, 07:59 AM   #2
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Rep: Reputation: 3
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
 
Old 07-18-2012, 08:10 AM   #3
cgirishaanekal
LQ Newbie
 
Registered: Nov 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
my doubt is that it will delete perl software ?
 
Old 07-18-2012, 08:13 AM   #4
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Rep: Reputation: 3
no, it will delete only softlink.
 
1 members found this post helpful.
Old 07-18-2012, 08:30 AM   #5
ubungu
LQ Newbie
 
Registered: Jun 2012
Location: /home/ubungu
Posts: 27

Rep: Reputation: Disabled
be careful

maybe you will delete source file or folder

You should use unlink

unlink softlink
 
Old 07-18-2012, 08:35 AM   #6
piyush.sharma
Member
 
Registered: Jul 2012
Location: Delhi, India
Distribution: CentOS
Posts: 82

Rep: Reputation: Disabled
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.
 
Old 07-18-2012, 08:43 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference Between Soft Link & Hard Link rajaniyer123 Solaris / OpenSolaris 16 09-30-2012 04:42 AM
soft link puntino Linux - Newbie 9 03-30-2012 04:31 AM
create soft link and hard link in RHEL5 ramadas88 Linux - Server 6 09-15-2010 05:32 AM
hard link and soft link varunrapelly Linux - Newbie 9 10-02-2008 08:05 AM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration