find_dups

command module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

README

find_dups

find_dups is a tool to find duplicate files underneath a given directory.

Installation

    go install github.com/abelikoff/find_dups@latest

(You might need to install GDBM library - in case of Ubuntu, that would be: sudo apt install libgdbm-dev).

Usage

Basic usage

Find all identical files in a given directory:

    find_dups ~/mydir

Files could be excluded from the check by supplying a regular expression via the -X flag.

Caching

find_dups can cache signatures for files it processes to facilitate faster results upon repeated use. Cache can be built in advance (which could be slow as it will calculate signatures for all files in the directory) on on the fly (which will only cache signatures for the files for which they are computed)

To rebuild the cache (slow!):

    find_dups update-cache

By default, cache rebuild is incremental (files that already have cached signatures are not touched). Passing -f flag makes find_dups re-cache all files in the specified directory.

To use cached signatures:

    find_dups -C ~/mydir

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL