Tool to find duplicate files and hardlink them Where might there be a small program (possibly statically-linked binary) like fdupes or rdfind, to help me find duplicate files within the same partition/mount--checking only specified directories--and hardlink them?

My architecture:  armv8l

root@localhost/storage/emulated/0/TitaniumBackup 2018-08-02,12:12:26# (16) uname -a
Linux localhost 3.10.108-ga044406f3ee #1 SMP PREEMPT Sun Jul 15 02:16:25 CEST 2018 armv8l


Assume I already have root shell access, with Busybox installed.

Filesystem               1K-blocks     Used Available Use% Mounted on
tmpfs                       944236      500    943736   1% /dev
tmpfs                       944236        0    944236   0% /mnt
/dev/block/mmcblk0p3         16048     2320     13728  15% /efs
/dev/block/mmcblk0p21       197472      428    197044   1% /cache
/dev/block/mmcblk0p23     11588512 11507720     80792 100% /data
/dev/block/mmcblk0p18         8080       92      7988   2% /persdata/absolute
/dev/block/mmcblk0p4          3952      548      3404  14% /cpefs
tmpfs                       944236      452    943784   1% /sbin
/dev/block/mmcblk0p20      3023760  1258796   1764964  42% /sbin/.core/mirror/system
/sbin/.core/block/loop08    157152   110660     46492  71% /sbin/.core/img
tmpfs                       944236        0    944236   0% /system
tmpfs                       944236        0    944236   0% /system/etc/permissions
tmpfs                       944236        0    944236   0% /system/priv-app
tmpfs                       944236        0    944236   0% /system/app
tmpfs                       944236        0    944236   0% /system/app/FaceLock/lib
tmpfs                       944236        0    944236   0% /system/lib
tmpfs                       944236        0    944236   0% /system/framework
tmpfs                       944236        0    944236   0% /system/vendor
/data/media               11588512 11507732     80780 100% /mnt/runtime/default/emulated
SD Maid can help you find duplicates. You need to buy the pro version to unlock all features though (in the case of duplicates, deleting them from the app).