https://github.com/mckael/goduf
A simple (but fast) duplicate file finder written in Go [Mirror repository]
https://github.com/mckael/goduf
cli duplicate-files duplicates go golang
Last synced: over 1 year ago
JSON representation
A simple (but fast) duplicate file finder written in Go [Mirror repository]
- Host: GitHub
- URL: https://github.com/mckael/goduf
- Owner: McKael
- License: other
- Created: 2018-04-01T23:09:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T21:58:53.000Z (over 4 years ago)
- Last Synced: 2025-02-09T08:17:27.448Z (over 1 year ago)
- Topics: cli, duplicate-files, duplicates, go, golang
- Language: Go
- Homepage: https://lilotux.net/~mikael/pub/goduf/
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goduf
Goduf is a fast duplicate file finder.
It is a command line tool.
[](https://raw.githubusercontent.com/McKael/goduf/master/LICENSE)
[](https://travis-ci.org/McKael/goduf)
## Usage
The typical usage is very simple:
```
% goduf DIRS...
```
Examples:
```
% goduf /usr/bin
Group #1 (2 files * 76 bytes):
/usr/bin/vam
/usr/bin/vim-addons
Group #2 (2 files * 292 bytes):
/usr/bin/pip
/usr/bin/pip2
Group #3 (3 files * 1134 bytes):
/usr/bin/gajim
/usr/bin/gajim-history-manager
/usr/bin/gajim-remote
Group #4 (2 files * 1303 bytes):
/usr/bin/pdftexi2dvi
/usr/bin/texi2pdf
Group #5 (7 files * 4791 bytes):
/usr/bin/ansible
/usr/bin/ansible-console
/usr/bin/ansible-doc
/usr/bin/ansible-galaxy
/usr/bin/ansible-playbook
/usr/bin/ansible-pull
/usr/bin/ansible-vault
(...)
```
```
% goduf -summary /usr/share/doc
2018/04/07 21:48:23 Final count: 5970 duplicate files in 1920 sets
2018/04/07 21:48:23 Redundant data size: 107594575 bytes (102 MiB)
```
Use `goduf -h` to get the list of available options.
*Note for Windows users:* goduf does not normalize paths on Windows, so be careful not to specify the same path twice.
On Linux, hard links are automatically excluded.
## Installation:
From the Github mirror:
```
% go get github.com/McKael/goduf
```
From my Mercurial repository (upstream):
```
% hg clone https://hg.lilotux.net/golang/mikael/goduf
% cd goduf
% go build
```
Please note that if you're not using Go v1.11 yet, you should clone the
repository in your $GOPATH.