especially in times of EU-GDPRDSGVO but also for the user’s privacy effectively shredding data is important.

if the admin-user wants to wipe-shred-secure-delete entire harddisks look at this article.

GNU Linux Debian 10 can do that 🙂

# install software
# deb based
hostnamectl; # tested on
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-14-amd64
      Architecture: x86-64
apt install zip secure-delete

# rpm based
hostnamectl; # tested on
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-240.10.1.el8_3.x86_64
      Architecture: x86-64
yum install zip srm.x86_64

# encrypt all files also filenames (good idea to also encrypt meta info too)
# warning! name the folder or file.zip to encrypt something random ! X-D
mv -v /folder/to/encrypt /folder/to/$FILENAME
zip -r $FILENAME.zip /folder/to/$FILENAME

#      OUTPUT-FILE             INPUT-FILE
zip -e $FILENAME.encrypted.zip $FILENAME.zip

# then shred the unencrypted version of the file
# maximum paranoia: overwrite with 38x passes of random
srm -vr /folder/to/$FILENAME
srm -vr $FILENAME.zip

# minimum paranoia: overwrite with 1x pass of random
srm -rfllv /folder/to/$FILENAME
srm -rfllv $FILENAME.zip

related manpages:



can only do files:


average rating 0 / 5. based on ratings 0

not rated yet