bash hapus file acak dari direktori

find /path/to/dir -type f -print0 | sort -zR | tail -zn +1001 | xargs -0 rm
Jealous Jellyfish