1.1 KiB
1.1 KiB
Use rmlint to search for duplicated or empty files
Install in Parabola GNU-linux
pacman -S rmlint
Run in the directory you want to check for duplicated or empty files
rmlint -g
This will create two files:
- rmlint.sh
- rmlint.json
The shell script can be used to delete duplicated files
OPTIONS:
- h Show this message.
- d Do not ask before running.
- x Keep rmlint.sh; do not autodelete it.
- p Recheck that files are still identical before removing duplicates.
- r Allow deduplication of files on read-only btrfs snapshots. (requires sudo)
- n Do not perform any modifications, just print what would be done. (implies -d and -x)
- c Clean up empty directories while deleting duplicates.
- q Do not show progress.
- k Keep the timestamp of directories when removing duplicates.
- i Ask before deleting each file
Execute the scripts
chmod +x rmlint.sh
bash -xcp rmlint.sh