Organising files
Finder can count, badly. The Terminal counts precisely, with conditions.
Select everything (⌘A) and the count appears in the window's status bar — enable it via View → Show Status Bar. Or ⌘I on a folder for its item count.
Both count immediate items, folders included. For a real file count, deep, with conditions, use the shell.
find ~/Documents -type f | wc -l
-type f counts files only; drop it to include folders. Hidden files are included, which Finder's count omits.
find . -name "*.jpg" -type f | wc -l # jpgs
find . -type f -size +10M | wc -l # big files
find . -type f -mtime -30 | wc -l # touched this month
find . -type d | wc -l # folders
for d in */; do printf "%6d %s\n" "$(find "$d" -type f | wc -l)" "$d"; done | sort -rn
Counts each immediate subfolder — the audit view for "which of these is enormous".
Filenames containing newlines (rare, legal) break line counting. The bulletproof form:
find . -type f -print0 | tr -cd '\0' | wc -c
Verifying copies and merges (source count == destination count before deleting anything), estimating how long an operation will run, and settling whether that folder really contains forty thousand files (node_modules: yes).
Show the status bar (View menu), select all in a folder — the count is at the bottom. ⌘I on a folder shows its item total.
No. find . -type f | wc -l in Terminal counts everything.
Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Download for Mac