This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
xxSherly/README.md

61 lines
2.3 KiB
Markdown
Raw Normal View History

# xxSherly
2023-01-03 14:41:10 +01:00
A fork of [Sherly](https://github.com/BlyDoesCoding/Sherly), using [xxHash](https://github.com/Cyan4973/xxHash).
2023-05-06 00:05:28 +02:00
![](./images/screenshot.png)
## Introduction
Sherly is a Multithreaded Duplicate File Finder for your Terminal, written in java. You can Easily find duplicate Images, videos as well as any other type of Data. That can be helpful if you run on small storage or just want to keep regular housekeeping.
2023-05-06 00:05:28 +02:00
This fork uses [xxHash](https://github.com/Cyan4973/xxHash) instead of MD5 for performance reasons (see [Speed comparison](#speed-comparison)).
Note that xxHash is not a cryptographic hash function and therefore may produce collisions. That's why the checksum is composed of the xxHash Digest and the filesize.
## Usage
```console
2023-03-20 20:51:50 +01:00
Usage: sherly -f inputfolder1 inputfolder2 inputfolder3 [options]...
2023-03-20 20:51:50 +01:00
-h / -help show this
-f / -folder all the folders you want to scan for (see example above!)
-c / -color enable colored messages
-t / -threads override default Thread number (default is usually number of cores * 2)
2023-03-20 20:51:50 +01:00
-p / -progress enable progress indicator
-d / -delete delete all dups except one without asking first
-n / -noinput skip all user input
2023-03-20 20:51:50 +01:00
-debug debug stuff
```
## Build
```bash
mvn package assembly:single
```
## Supported Platforms
| OS | Working | Version |
2023-05-06 00:05:28 +02:00
| ----------------- | :------------: | ------: |
| Linux | Yes | 1.0 |
| Windows 10/11 | Not yet tested | - |
| macOS | Not yet tested | - |
| BSD | Not yet tested | - |
## Speed comparison
I let Sherly and xxSherly find duplicates in my Music Library (containing `.wav` files) using the following commands:
```bash
time java -jar Bin/sherly.jar -n -f ~/Music/ /usr/lib
time java -jar target/xxSherly-1.0-jar-with-dependencies.jar -n -f ~/Music/ /usr/lib
```
2023-05-06 00:05:28 +02:00
The timings are measured using the Linux tool `time` (`real`).
2023-05-06 00:05:28 +02:00
| | Sherly | xxSherly |
| --------: | ------------: | --------------: |
| 1st run | 4.055s | 2.561s |
| 2nd run | 4.055s | 2.304s |
| 3rd run | 4.066s | 2.549s |
| **avg** | **4.059s** | **2.471s** |