Skip to content

NO_SUDO

  • check for executing when root permissions
  • for user data : no sudo required

fdupes

sudo apt-get install fdupes
# find all duplicates in {directory} 
fdupes -r {directory} 

# multiple dir : seperate by spaces 
fdupes -r {dir1}  {dir2}  {dir3} 

fdupes -r {dir1}  {dir2}  > /tmp/fdupes-output.txt
xed /tmp/fdupes-output.txt & disown

fdupes is excellent for folders with not too many files
for huge collections however , use rmlint
pro :
compare by :
- file size
- hardlinks
- MD5 signatures
- byte-by-byte

rmlint

https://rmlint.readthedocs.io/en/latest/tutorial.html

# with working folder  :
cd /media/ward/UD-2TB/entertainment
rmlint

# with multiple input directories : 
rmlint dir1 dir2 dir3
  • output to terminal (a seperate .sh is also generated)
  • no options : will recursively exec on all files in current folder (from cd above)
  • an advantage above using fdupes is that the rm commands are already generated
  • data is also stored in a json file

er is tevens een GUI interface

fslint

zie fslint