On Thu, 2010-08-12 at 16:41 +0530, Balaji Damodaran wrote:
> On Thursday 12 August 2010 04:01 PM, Kenneth Gonsalves wrote:
> > how did this happen? I am always rm'ing links and the directories
> never
> > get deleted.
> >    
> 
> sudo rm link-name  -  won't be a problem.
> 
> sudo rm link-name/ - deletes the underlying directory. 

[law...@xlquest ~]$ mkdir testdir
[law...@xlquest ~]$ cd testdir
[law...@xlquest testdir]$ touch one
[law...@xlquest testdir]$ touch two
[law...@xlquest testdir]$ ls
one  two
[law...@xlquest testdir]$ cd ..
[law...@xlquest ~]$ ln -s /home/lawgon/testdir/ slink
[law...@xlquest ~]$ rm slink/
rm: cannot remove `slink/': Not a directory
-- 
regards
KG
http://lawgon.livejournal.com

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to