GithubHelp home page GithubHelp logo

veggievampire / dugu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deadsoul/dugu

0.0 2.0 0.0 27 KB

Find, remove and avoid duplicates with dugu: The Duplicates Guru

License: GNU General Public License v3.0

Python 100.00%

dugu's Introduction

dugu

The Duplicates Guru

What is dugu?

dugu is a tool that helps to you find, remove and avoid the duplicates. It was inspired by the fdupes.

Who wrote it? (Author)

Mubarak Alrashidi, who's known as DeaDSouL.

Installation

It's not clear for now, how it's going to be installed. Since it's not being packaged yet.

But you can download it, then manually install it by:

Globally: (don't forget the su/sudo)

$ mv dugu.py /opt/
$ ln -s /opt/dugu.py /usr/bin/dugu

Or Locally:

$ mv dugu.py ~/bin/dugu

The argument 'scan'

This argument is meant for finding and/or getting rid of the duplicates.

The argument 'precopy'

This argument is very handy and useful if you want to copy folders. Its main purpose is avoiding the duplicates.

Usage:

dugu [-h] [-v] [-s] [-f] [-t {md5,sha1,sha256,sha512}] [-p | -l | -i | -r | -R] scan DIR | precopy DIR1 DIR2

How to

Let's say we want to check the folder called: 'Pictures':

If you only want to scan 'Pictures', try:

dugu scan Pictures

If you want to see the list of duplicates, try:

dugu -p scan Pictures

If you want to visually see the duplicates, try:

dugu -l scan Pictures

If you want to isolate all the duplicates, try:

dugu -i scan Pictures

If you want to remove the duplicates, try:

dugu -r scan Pictures

If you want to auto-remove the duplicates, try:

dugu -R scan Pictures

If you want to ignore the cache, and force dugu to re-scan 'Pictures', try:

dugu -f scan Pictures

If you want to use 'sha1' as the scan's algorithm, try:

dugu -t sha1 scan Pictures

If you want to execlude the files in the folder 'old_pic' that folder 'Pictures' already have, try:

dugu precopy old_pic Pictures

PS: Please note, that the previous command will only execlude the files from 'old_pic' that are being existed in both directories. It will not touch the duplicates that might be in 'old_pic'; Unless you use one of [-p | -l | -i | -r | -R] with the argument precopy

To get the help menu, try:

dugu -h

License

To be honest, I chose this license because it's the one that is being used by Linux kernel.

Although, this program is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see gnu.org/licenses.

Copyright (C) DeaDSouL

dugu's People

Contributors

deadsoul avatar

Watchers

James Cloos avatar Nick Farrow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.