View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Sep 02, 2011 8:47 am 
Offline
Joined: Fri Jan 26, 2007 2:25 pm
Posts: 2
chrisj wrote:
I messed up a symlink and now can't remove it

rm -rf video dose not do it , any hints ?

Code:
video -> video


Old thread but the only one that comes up in Google for this problem, and I found a workaround so I thought I'd post it in case its useful to anyone else.

The trick is to relink to something else (whether or not the something else exists is irrelevant). So:
Code:
ln -sf x video
rm video

.. first forces ln to replace the link with a new one pointing to non-existant file "x", then rm is allowed to remove it.

(In my case this was not on a KnoppMyth system but an old Linux web server but I think the solution would be fairly general.)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2011 9:55 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1198
Location: Orlando FL
thanks Hollymcr for creating an account just to help the community. 2 Karma points for you. :)

_________________
My System


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 05, 2011 3:08 am 
Offline
Joined: Fri Jan 26, 2007 2:25 pm
Posts: 2
mattbatt wrote:
thanks Hollymcr for creating an account just to help the community. 2 Karma points for you. :)


Thanks, but in the interests of honesty I already had the account having created it several years ago but never actually posted using it!

Hopefully I'll get chance to play with Myth again shortly, never quite got to a working system (but that was several years ago!)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu