Quick Tip: Count the Number of Files in a Directory

From the command line (terminal in OS X), go to the directory and execute this line:
ls -1 | wc -l

ls -1 will list files 1 per line and piping into wc -l will count the number of lines output.

Categories: , ,

Copyright © hackaddict.net | family andrew kortina Top ↑

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com | BTheme.net