Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exit Codes

rsdedup uses meaningful exit codes for scripting:

CodeMeaning
0Success, no duplicates found
1Success, duplicates found
2Error

Examples

# Check if a directory has duplicates
if rsdedup dedup report /data > /dev/null 2>&1; then
    echo "No duplicates"
else
    echo "Duplicates found"
fi

# Use in CI to fail if duplicates exist
rsdedup dedup report /assets && echo "Clean" || echo "Duplicates detected"