[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Number of files in a directory?
From: |
Noah |
Subject: |
Re: Number of files in a directory? |
Date: |
Thu, 10 Mar 2005 16:18:05 -0500 |
User-agent: |
Mutt/1.3.28i |
On Thu, Mar 10, 2005 at 03:49:10PM -0500, nathan r. hruby wrote:
> This seems kinda like a kludge. Anyone have any better suggestions for
> monitoring the number of files in a directory?
If the following conditions are met:
* you're running solaris
* /var/spool/mqueue is a filesystem unto itself
...you can run 'df -g' to dump out the statvfs struct (Solaris' 'df'
only):
# /bin/df -g /
/ (/dev/dsk/c0t0d0s0 ): 8192 block size
1024 frag size
4107210 total blocks 3980428 free blocks 3857212 available
344448 total files
341961 free files 8388608 filesys id
ufs fstype 0x00000004 flag 255 filename length
Then subtract 'free files' from 'total files' to get the number of files
on the FS (more or less).
--n
--
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy
- Number of files in a directory?, nathan r. hruby, 2005/03/10
- Re: Number of files in a directory?, Adams, Russell L., 2005/03/10
- Re: Number of files in a directory?, Tim Nelson, 2005/03/10
- Re: Number of files in a directory?, nathan r. hruby, 2005/03/10
- Re: Number of files in a directory?, Tim Nelson, 2005/03/14
- Re: Number of files in a directory?, Mark Burgess, 2005/03/15
- Re: Number of files in a directory?, nathan r. hruby, 2005/03/15
- Re: Number of files in a directory?, Mark Burgess, 2005/03/15
- Re: Number of files in a directory?, Tim Nelson, 2005/03/16
Re: Number of files in a directory?, Mark Foster, 2005/03/10
Re: Number of files in a directory?,
Noah <=