LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 07: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, 07: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, 07: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, 07: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, 07:43 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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



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 03:42 AM
soft link puntino Linux - Newbie 9 03-30-2012 03:31 AM
create soft link and hard link in RHEL5 ramadas88 Linux - Server 6 09-15-2010 04:32 AM
hard link and soft link varunrapelly Linux - Newbie 9 10-02-2008 07:05 AM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 PM.

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
Open Source Consulting | Domain Registration