
rmlint:ai:74321
how can i use rmlint to scan my entire "/home" dir for pdf files and fine the original of each pdf and then move 1 copy of each pdf to a folder on linux. It has to recurse as deep as possible and follow paths and ensure deduplication is done .
$ rmlint -g -r /home --types pdf --unique --xattr-keep --move dest_folder
try on your machine
Use rmlint with the options: -g to group files based on content, -r to recurse into subdirectories, --types pdf to only consider pdf files, --unique to only keep 1 copy of each file, --xattr-keep to preserve extended attributes, and --move to move files to dest_folder.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- how can i use rmlint to scan my entire "/home" dir for pdf files and fine the original of each pdf and then move 1 copy of each pdf to a folder on linux. It has to recurse as deep as possible and follow paths and ensure deduplication is done .?