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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-18-2012, 06:54 AM
|
#1
|
LQ Newbie
Registered: Nov 2011
Posts: 26
Rep: 
|
soft link
Hi
rm -f /usr/local/bin/perl -> /usr/bin/perl
it will remove softlink or permanently delete perl
Regards
Girish
|
|
|
07-18-2012, 06:59 AM
|
#2
|
Member
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49
Rep:
|
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
|
|
|
07-18-2012, 07:10 AM
|
#3
|
LQ Newbie
Registered: Nov 2011
Posts: 26
Original Poster
Rep: 
|
my doubt is that it will delete perl software ?
|
|
|
07-18-2012, 07:13 AM
|
#4
|
Member
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49
Rep:
|
no, it will delete only softlink.
|
|
1 members found this post helpful.
|
07-18-2012, 07:30 AM
|
#5
|
LQ Newbie
Registered: Jun 2012
Location: /home/ubungu
Posts: 27
Rep: 
|
be careful
maybe you will delete source file or folder
You should use unlink
unlink softlink 
|
|
|
07-18-2012, 07:35 AM
|
#6
|
Member
Registered: Jul 2012
Location: Delhi, India
Distribution: CentOS
Posts: 82
Rep: 
|
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.
|
|
|
07-18-2012, 07:43 AM
|
#7
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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 10:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|