LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2003, 01:44 PM   #1
SerfurJ
Member
 
Registered: May 2003
Posts: 80

Rep: Reputation: 15
Arrow problems removing a symoblic link


i am baffled by this nonsense. i'm trying to remove the symbolic link "/home/jason/tmp" -> /tmp. it's on fedora core with the bash shell.

[1075 root 13:37:07 /home/jason]$rm tmp/
rm: remove directory `tmp/'? y
rm: cannot remove directory `tmp/': Is a directory
[1076 root 13:37:10 /home/jason]$rmdir tmp/
rmdir: `tmp/': Not a directory
[1077 root 13:38:15 /home/jason]$rm -rf tmp/
rm: cannot remove `tmp/': Not a directory
 
Old 12-12-2003, 01:52 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Can you give the output after cd'ing into your home directory:

ls -al tmp
 
Old 12-12-2003, 01:58 PM   #3
BlurredWeasel
Member
 
Registered: Oct 2003
Distribution: RH9
Posts: 38

Rep: Reputation: 15
There is a known bug in rm (that apparently is a bitch to fix...) that makes removing a sym link of a directory act wierd.

Try:
Quote:
rm -r tmp
Note the no trailing slash on that. I had this same problem a week or 2 ago and it took me 10 minutes of googling to find out.

Hope that helps
Chris
 
Old 12-12-2003, 02:01 PM   #4
SerfurJ
Member
 
Registered: May 2003
Posts: 80

Original Poster
Rep: Reputation: 15
"rm -r tmp" worked. thanks a lot.

jason
 
  


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
removing a soft link quietguy47 Linux - General 3 12-31-2011 09:34 PM
Removing a symbolic link lolipop Linux - Newbie 2 03-23-2005 11:53 AM
Problems removing outdated programs corbis_demon Linux - Newbie 1 08-01-2004 03:14 AM
Removing Linux - booting problems? Tigleon Linux - Hardware 5 06-05-2003 04:40 PM
Help removing a symbolic link jamesmwlv Linux - Newbie 3 04-25-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 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
Open Source Consulting | Domain Registration