Home / Prompts / Files

Find duplicate files

Find exact duplicate files by their content, not just by name, and list how much disk space you can free on your computer.

FilesStep by step

The prompt

Find duplicate files in my Pictures and Documents folders by comparing file contents. Group the duplicates, show the size of each group and the total space I could free. Do not delete anything until I choose which copies to keep.

What the AI will do

  1. Compares files in Pictures and Documents by content, not name.
  2. Groups the duplicates with the size of each group and the total you could free.
  3. Waits for you to choose which copies to keep before deleting anything.

On Windows, Mac and Linux

Windows: uses PowerShell; with OneDrive backup on, these folders may be inside OneDrive. Mac and Linux: ~/Pictures and ~/Documents.

How to use it

  1. Make sure Shellway is connected in ChatGPT, Claude or Cursor.
  2. Paste the prompt and change the folder names or paths to match your computer.
  3. Review the plan your AI shows before you confirm any changes.

Example reply

An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.

Found 64 groups of exact duplicates (same content):
  IMG_2041.jpg  x3  (4.1 MB each)  Pictures/2024, Pictures/Phone backup, Desktop
  report-final.pdf  x2  (2.3 MB)  Documents, Downloads
  ...
You could free 1.8 GB by keeping one copy of each.
Tell me which folder's copies to keep.

Tips

  • For very large folders, ask it to start with files over 1 MB.

Good to know

Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).

Related prompts