Adam K Dean

Count files in a directory in Linux

Published on 5 February 2014 at 09:43 by Adam

Count files in current directory with:

ls | wc -l

Or count files in a specific directory with:

ls /some/path | wc -l


This post was first published on 5 February 2014 at 09:43. It was filed under archive with tags linux, ls, wc, count.