Re: delete directory

From: Linux Jay (jamie_at_uranus.softham)
Date: 04/07/05


Date: Thu, 07 Apr 2005 00:59:42 GMT

On 2005-04-07, Houston CAPCOM <null@null.org> wrote:
>
> I am trying to use rmdir to delete a directory that is not empty and I
> cant do it. How do I delete a directory that has files in it?
>

Try:

rm -r /dir

Be careful. ;-)

Or delete all the files in it, then delete the directory?

-- 
LJ
My Realm:  http://www.myrealm.co.uk
Eddie's Extensions: http://freshmeat.net/projects/eddie42
I wish I would have a real tragic love affair and get so bummed out that
I'd just quit my job and become a bum for a few years, because I was
thinking about doing that anyway.


Relevant Pages

  • Re: delete directory
    ... mjt wrote: ... >> I am trying to use rmdir to delete a directory that is not empty and I ... >> cant do it. ...
    (alt.os.linux.suse)
  • Re: Bonnie++ Burps on XFS
    ... Anything in your system log? ... I had filesystem corruption and needed ran xfs_repair. ... rmdir: `658616481': Directory not empty ...
    (Linux-Kernel)
  • [RFC][PATCH 4/4] cgroup-memcg fix frequent EBUSY at rmdir
    ... When trying following test under memcg. ... You'll see -EBUSY at rmdir very often. ... or false error code if the cgroup has ...
    (Linux-Kernel)
  • Re: Removing corrupted directory
    ... I can toggle the bits with ... I'm not sure if rmdir behaves any differently than rm -r but have ... > The command rmdir is just a safety command, only removing empty ...
    (comp.sys.mac.system)
  • Re: If/Then that changes a fields backcolor
    ... i cant make it take into consideration if the field is empty. ... looking at formatting some date fields so that as time nears the deadline, ... "Jeff Boyce" wrote: ...
    (microsoft.public.access.reports)