On 08/12/2010 04:41 PM, 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.

...and that's the reason why 'unlink' exists. You are unambiguous that way.

Anyways, to be pedantic, 'rm' by itself will not remove a directory or a link to a directory (when specified as link-name/) unless the directory is empty. Also, sudo is not required unless the logged in user doesn't have the correct permissions (ie: write permission on the containing directory).

cheers,
- steve
--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to