Skip to main content

dupeutil

A command-line program written in Python for detecting and removing duplicate files

Table of contents

Installation

To install dupeutil, enter the following command in your terminal:

python -m pip install dupeutil

Usage

dupeutil is designed to be as effortless and as easy as possible to use. You can check for duplicate files in a directory by cd-ing into that directory and by simply entering the following command in your terminal:

dupeutil

That's it. The program will then check for duplicate files in the current working directory and provide you with a prompt that shows which duplicates were found and ask if you would like to remove them.

Alternatively, if you would like to check a particular directory without it being the current working directory, you can explicitly pass it a directory:

dupeutil <path to dir>
📝 NOTE: You may need to wrap the directory in quotes:

dupeutil "C:\Users\user\Downloads\folder"

Arguments

These are the available command-line arguments that you can pass to dupeutil. You can enter dupeutil -h or dupeutil --help in your terminal to view them as well.

positional arguments:
  dir                           the directory to check

options:
  -h, --help                    show this help message and exit
  -f FILES [FILES ...],         the files to compare
  --files FILES [FILES ...]

  -q, --quiet                   suppress output to the console; this option will not ask for
                                permission to  remove files
  -r, --recursive               include files in subdirectories
  -v, --version                 print program version

Files flag

If you'd rather compare files instead of a directory, you can do so by using the -f or --files flag:

dupeutil -f <path to file1> <path to file2> <path to file3> ... <path to fileN>

If any of the paths contain a space, it's recommended that you wrap them in quotes.

Quiet flag

If you don't want to see any output in the console, you can pass the -q or --quiet flag when you run dupeutil:

dupeutil <path to dir> -q

If you include the quiet flag, the program will not provide you with an overview of duplicate files, nor will it ask you for permission to remove those files.

Recursive flag

If you would like to include subdirectories in the given directory, pass the -r or --recursive flag:

dupeutil <path to dir> -r

Including this flag will cause files in the top-level directory and files in any subdirectories to be compared as well.

Metadata

Release files for dupeutil 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dupeutil 1.0.0
File Size Uploaded
dupeutil-1.0.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dupeutil 1.0.0
File Interpreter ABI Platform
dupeutil-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / dupeutil-1.0.0.tar.gz

Download URL dupeutil-1.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5cabae478c0f05b8931a8a6f818803306ced247f99dd79b4ba6dbbd5d44a87e8
BLAKE2b-256 checksum
How to use checksums
9eb5650c62218959bf94abb4bf601b948398dcddf03788d323a52d15be30dd64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.0

Release files / dupeutil-1.0.0-py3-none-any.whl

Download URL dupeutil-1.0.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99fd1f823e89966d50ff2e0fe0c80bd2b8a6a61bf612c636b776a565b663318e
BLAKE2b-256 checksum
How to use checksums
987da5eacfa6dc0ae80a6f9e58b63413dfc406363b8a8e4c3bc01c29708f1908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page