Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Count The Number Of Files In A Directory

DZone's Guide to

Count The Number Of Files In A Directory

·
Free Resource

ls -a | wc -l

You can also try ls -A (same as --almost-all) to list all dotfiles but . and ..


Snagged from http://www.webservertalk.com/archive109-2004-7-315190.html
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}