Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install and Use fdupes

fdupes finds identical files by size and hash. Handy to clean fat backups, uploads or home dirs on a VPS.

Steps

  1. Install fdupes:

    sudo apt update
    sudo apt install -y fdupes
    fdupes -v
  2. Scan a directory recursively (list only):

    fdupes -r /var/www
    fdupes -r -S /home
  3. Interactive delete (keeps prompts / first file with -N):

    fdupes -rdN /safe/test/path
  4. Pair with ncdu to see what is heavy before deleting:

    sudo apt install -y ncdu
    sudo ncdu /var

Tips

  • ever auto-delete from / or without a backup — start in a test folder.
  • -d is interactive; -N keeps the first and removes the rest — only if you trust the order.

ext step

Clean disk on a VPS with real headroom: Deploy your Cloud VPS.

Related guides