$linuxjunkies
>

spot(1)

Spot is a command-line tool for finding and analyzing duplicated content across files and directories.

UbuntuDebianFedoraArch

Synopsis

spot [OPTION]... [FILE|DIRECTORY]...

Description

Spot identifies duplicate files and content blocks within your filesystem. It uses content hashing to find exact duplicates regardless of filename, and can report on wasted space from redundant data.

By default, spot scans files and groups identical content together, helping identify storage waste and organizational issues. It supports filtering by file size, type, and custom hash algorithms.

Common options

FlagWhat it does
-r, --recursiveRecursively scan directories and subdirectories
-s, --min-size SIZEOnly consider files larger than SIZE bytes
-d, --duplicatesShow only files that have duplicates
-H, --hash ALGORITHMUse specified hash algorithm (md5, sha1, sha256)
-q, --quietSuppress non-essential output
-v, --verbosePrint detailed information during scanning
-f, --format FORMATOutput format: json, csv, or text
--ignore-hiddenSkip hidden files and directories

Examples

Find all duplicate files recursively in the documents directory

spot -r /home/user/documents

Find duplicate files larger than 1MB in the home directory

spot -r -s 1048576 /home

Export duplicate files in JSON format to a file

spot -d -f json /var/log > duplicates.json

Scan for duplicates while ignoring hidden files and directories

spot -r --ignore-hidden /home/user

Scan multiple directories with verbose output to see scanning progress

spot -v /tmp /home/user/downloads

Related commands