FDup is an command line application to find duplicate files.
To build fdup you need to install erlang and elixir:
$ sudo apt-get install elixir
run mix to build the fdup executable:
$ mix escript.build
usage:
fdup --mode [unique|duplicate] [--group level] PATH
Let's find all duplicates:
$ fdup --mode duplicate test_data/mixed
test_data/1/x.txt
test_data/2/x.txt
test_data/x.txt
Let's group them:
$ fdup --group --level 1 test_data/mixed
U=2 D=3 : test_data
If available in Hex, the package can be installed as:
- Add
fdupto your list of dependencies inmix.exs:
def deps do
[{:fdup, git: "https://github.com/thomasvolk/fdup.git", tag: "0.5"}]
end- Ensure
fdupis started before your application:
def application do
[applications: [:fdup]]
end