Back to commands

Apple Terminal

Read-only, can be slow

Find Large Files Inside a Project

A project folder contains unexpectedly large files that slow sync, backups, or Git operations.

Command

find . -type f -size +100M -print

Before you run this

System impact: Read-only. Can create load on large logs, directories, filesystems, or process tables.

When not to use it: Do not use it to measure total folder size. Use du for that.

Expected output

Paths to files larger than 100 MB, one per line.

System impact

Read-only, can be slow. Nothing changes. The command only lists matching files.

Scope this to the smallest useful path or service on busy systems.

Recovery / rollback: no state is changed.

When to use it

Use before commits, uploads, backups, or when a project folder suddenly becomes huge.

When not to use it

Do not use it to measure total folder size. Use du for that.

Watch this command run

Command transcript

This sanitized transcript shows the commands and output shape without exposing host details.

demo@lab:~$

$ find project -maxdepth 2 -type f -print | sort

project/dist/bundle.js
project/export/final.mov
project/logs/app.log
project/src/app.ts
project/trusted-tool

$ cd project && find . -type f -size +100M -print

./export/final.mov
View commands shown

These are the commands shown in the sanitized transcript.

Commands shown

  1. find project -maxdepth 2 -type f -print | sort
  2. cd project && find . -type f -size +100M -print

next steps

Related commands

Hosting Operations Can be slow

Find Empty Files in a Backup

Zero-byte files can be normal, or they can be failed writes.

find backup -type f -size 0 -print
Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • lpic1:103-gnu-unix-commands
  • lpic1:104-filesystems-permissions-fhs
  • lfcs:essential-commands
  • lfcs:storage
  • linuxplus:automation-scripting
  • linuxplus:provisional
  • linuxplus:system-management
  • linuxplus:troubleshooting
  • risk:macos-only
  • risk:read-only

Useful for

  • LPIC-1 style command-line practice
  • LFCS style performance tasks
  • Linux+ style troubleshooting review

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.