Blog's from the Bush
The ramblings of a lost technocrat...

How do I find the total number of files in a directory?

| No TrackBacks | Bookmark and Share
  1. Open Terminal.
  2. Navigate to the directory in question.
  3. type “find . -type f | wc -l”
  4. Press “Return/Enter”

That’s it.

ps. this will also count all the files in any sub-directories of the one you’re currently in.

No TrackBacks

TrackBack URL: http://www.lensenergy.com/cgi-bin/mt/mt-tb.cgi/170

About the Author

 I've been described as a lost technocrat or a wondering luddite, personally I just like everything that takes us forward.


As the principal of CPPL I try to deliver OSS web solutions to our clients and Cocoa platform software for end-users and businesses alike. Oh, and we enjoy writing IOS software for the iPhone & iPad.

Pages

Powered by Movable Type 4.33-en

About this Entry

This page contains a single entry by craig published on September 1, 2011 5:49 PM.

Find recent content on the main index or look in the archives to find all content.