[TriLUG] file and directory count

Dan Monjar daniel.monjar at na.biomerieux.com
Fri Aug 1 11:26:54 EDT 2003


--On Friday, August 01, 2003 11:10:08 AM -0400 Ken Mink 
<kmtrilug at nc.rr.com> wrote:

> Another big problem with doing it with 'ls' is that it won't get dot
> files. If you don't get the dot files in /home, your count will be WAY
> off. If you use 'ls -a', you'll get '.' and '..'. You'll have to
> remember to subtract 2 from the count.
> The find command is the way to go.

or you could use 'ls -A' to not get '.' and '..'...

ls has way too many options.

--
Daniel Monjar
IS Manager, Technical Services
bioMérieux, Inc.
Durham, NC US
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030801/c446b386/attachment.pgp>


More information about the TriLUG mailing list