Hi hrisy,
There's not a lot of pleasant possibilities
if an rm -rf of test doesn't work (and I
get the idea that it didn't).
Is it possible that a process is running
that created a file and unlinked it, but
the process is still running, but the file
is still open? Or that an independent
process rm'd a file the test directory, but
another process has it open?
Does an "fuser -c test" show anything?
If fuser -c test doesn't show anything,
and an rm -rf test (while you're not in
the test directory) didn't work, then
you can do an unlink(1M) of the directory,
but understand that this is very, very,
nasty and should only be done as a last
resort. Be _very_ sure that no process
has a file open in test when you do this.
Be sure that no shell has test as it's
current working directory.
good luck,
cas
hrishy wrote:
>> Hi stephane
>> i am on sunos..output of sundir test is
>> rmdir test
> rmdir: directory "test": Directory not empty
>> regards
> hrishy
>> --- Stephane Dudzinski <stephane at antefacto.com> wrote:
> > The output has no hidden directories, this is what
> > you get in an empty
> > directory when doing a ls -la
> >
> > what does return rmdir test
> >
> > ?
> >
> > What kind of linux flavour do you use ? Do you
> > offenly check your fs ?
> >
> > On 31 Jul 2001 08:57:18 +0100, hrishy wrote:
> > > Hello stephane
> > >
> > > here is the output of
> > > rm -rf test
> > > rm: Unable to remove directory test: File exists
> > >
> > > regards
> > > hrishy
> > >
> > > -- lindenm at rte.ie wrote: > Did you try
> > > > rm -rf test
> > > >
> > > > What happens then??
> > > >
> > > > Markus
> > > >
> > > > Quoting hrishy <hrishys at yahoo.co.uk>:
> > > >
> > > > > Hello
> > > > >
> > > > > output of ls -la is
> > > > > jaquarROOT# cd test
> > > > > jaquarROOT# ls -la
> > > > > total 4
> > > > > drwxrwxrwx 3 root sys 512 Jul
> > 31
> > > > > 06:37
> > > > > .
> > > > > drwxr-xr-x 3 root other 512 Jul
> > 31
> > > > > 06:44
> > > > > ..
> > > > >
> > > > > how do i delete test???there two hiden folders
> > .
> > > > > and
> > > > > ..
> > > > > regards
> > > > > hrishy
> > > > >
> > > > >
> > > > > --- Stephane Dudzinski
> > <stephane at antefacto.com>
> > > > > wrote:
> > > > > > 2 ways :
> > > > > >
> > > > > > - Check if they do not contain any hidden
> > file
> > > > > > .xxxxxx by : ls -la test
> > > > > >
> > > > > > - rm -rf <dirname> will wipe out everything,
> > > > > careful
> > > > > > with this one.
> > > > > >
> > > > > > Steph
> > > > > >
> > > > > > On 30 Jul 2001 12:02:01 +0100, hrishy wrote:
> > > > > > > Hello
> > > > > > >
> > > > > > > I have 2 folders called test and testd
> > which
> > > > > are
> > > > > > empty
> > > > > > > i wann adelete them but unable to do so as
> > > > > it is
> > > > > > sayin
> > > > > > > that the folders are not empty whereas
> > > > > actually
> > > > > > they
> > > > > > > are.if a create a dir called hrishy i am
> > > > > able to
> > > > > > > delete.i have root aceses to the system
> > > > > > >
> > > > > > > regards
> > > > > > > hrishy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ________________________________________________________
> > > > ____
> > > > > > > Do You Yahoo!?
> > > > > > > Get your free @yahoo.co.uk address at
> > > > > > http://mail.yahoo.co.uk> > > > > > > or your free @yahoo.ie address at
> > > > > > http://mail.yahoo.ie> > > > > > >
> > > > > > > --
> > > > > > > Irish Linux Users' Group: ilug at linux.ie> > > > > > > http://www.linux.ie/mailman/listinfo/ilug> > > > > for
> > > > > > (un)subscription information.
> > > > > > > List maintainer: listmaster at linux.ie> > > > > > --
> > > > > > __________________________________________
> > > > > > Stephane Dudzinski Systems Administrator
> > > > > > a n t e f a c t o t: +353 1 8586009
> > > > > > www.antefacto.com f: +353 1 8586014
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Irish Linux Users' Group: ilug at linux.ie> > > > > > http://www.linux.ie/mailman/listinfo/ilug> > for
> > > > > > (un)subscription information.
> > > > > > List maintainer: listmaster at linux.ie> > > > >
> > > > >
> > > >
> > >
> >
> ________________________________________________________
> > > > ____
> > > > > Do You Yahoo!?
> > > > > Get your free @yahoo.co.uk address at
> > > > > http://mail.yahoo.co.uk> > > > > or your free @yahoo.ie address at
> > > > > http://mail.yahoo.ie> > > > >
> > > > > --
> > > > > Irish Linux Users' Group: ilug at linux.ie> > > > > http://www.linux.ie/mailman/listinfo/ilug for
> > > > > (un)subscription information.
> > > > > List maintainer: listmaster at linux.ie> > > > >
> > > >
> > > >
> > >
> >
> *************************************************************
> > > > The information in this e-mail is confidential
> > and
> > > > may be
> > > > legally privileged. It is intended solely for
> > the
> > > > addressee.
> > > > Access to this e-mail by anyone else is
> > > > unauthorised. If
> > > > you are not the intended recipient, any
> > disclosure,
> > > > copying,
> > > > distribution, or any action taken or omitted to
> > be
> > > > taken in
> > > > reliance on it, is prohibited and may be
> > unlawful.
> > > >
> > >
> >
> *************************************************************
> >
> > >
> > >
> >
> ____________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.co.uk address at
> > http://mail.yahoo.co.uk> > > or your free @yahoo.ie address at
> > http://mail.yahoo.ie> > --
> > __________________________________________
> > Stephane Dudzinski Systems Administrator
> > a n t e f a c t o t: +353 1 8586009
> > www.antefacto.com f: +353 1 8586014
> >
> >
> > --
> > Irish Linux Users' Group: ilug at linux.ie> > http://www.linux.ie/mailman/listinfo/ilug for
> > (un)subscription information.
> > List maintainer: listmaster at linux.ie>> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk> or your free @yahoo.ie address at http://mail.yahoo.ie>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!