[TriLUG] file and directory count

Jeremy Portzer jeremyp at pobox.com
Fri Aug 1 11:18:49 EDT 2003


On Fri, 2003-08-01 at 11:10, Ken Mink 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.
> 

To continue to beat this dead horse, you can use "ls -A" to show all
files, including dot files, except for "." and ".." 

ls has a LOT of options... :-)

--Jeremy

-- 
/---------------------------------------------------------------------\
| Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030801/cb8170dd/attachment.pgp>


More information about the TriLUG mailing list