[ILUG] count of files in a directory
hrishy
hrishys at yahoo.co.uk
Tue Jul 31 12:08:27 IST 2001
Hi Charles
i am geting it str8 from the horses mouth......you r a
sun microsystems guy arent you.thanx a lot for the
response charles.i fearing for the worst there must be
a file system corruption.
regards
hrishy
--- Charles Sharp <charles.sharp at sun.com> wrote: >
>
> 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
> > > > > >
>
=== message truncated ===
____________________________________________________________
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
More information about the ILUG
mailing list