[TriLUG] file and directory count

Joseph Tate jtate at dragonstrider.com
Thu Jul 31 16:34:52 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You could pipe that output through wc -l which will give you a count of 
the lines.

JoJo Almario wrote:

| I have a newbie question.  Is there a command (like du -, or ls-  ) 
that will give me a file and directory count?  like how many files and 
directories under /home/users without having to count them one by one 
after doing a "du" or an "ls" or "ll -a" command?
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBPyl9bIj0CKOSIRGqAQKhtgP/ebiX+toHXpZ9ae7Rqs6JG05jkPyCiAwc
hcYKkzIO/D520zknNh1LpBtRZzJH6yP0artCJ8CfIhjR9NOkgdIm1twMoBu7SSIJ
qJ2EQJZVhPLRKHAqnvjpxjkLwiGBkbNEsDV1dEPOaXfOd7msiLufMmUbvo+yAC1S
zpPU8sjY5J8=
=xESi
-----END PGP SIGNATURE-----





More information about the TriLUG mailing list