Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-12-2003, 02:44 PM   #1
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, 02:52 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

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

ls -al tmp
Old 12-12-2003, 02:58 PM   #3
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.

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
Old 12-12-2003, 03:01 PM   #4
Registered: May 2003
Posts: 80

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



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

All times are GMT -5. The time now is 11:44 AM.

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