LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] count of files in a directory

[ILUG] count of files in a directory

Ciaran Mac Lochlainn ciaran17 at eircom.net
Tue Jul 31 19:22:02 IST 2001


Hi hrisy,

There is one similar possibility.  If another user or process is in the 
directory, for example at a shell prompt, the system might not allow it to be 
deleted.  Linux DOES allow this (at least mine does) but I'm pretty sure SCO 
Unix does not, so Sun OS may well be the same.

Ciaran

On Tuesday 31 July 2001 11:36, Charles Sharp 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
> >




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell