← Learn
Dangerous
shred -u /backups/nightly.sql.gz

linux · bash · Beginner

Overwrites a backup file and then unlinks it. shred is designed to defeat recovery, so unlike a normal delete there is no forensic path back to the contents once it finishes.

Signals to notice

  • shred overwrites the data before removing the entry
  • -u unlinks the file afterwards, leaving nothing to recover

Think you can spot these under time pressure?

Start Training

More Data Exfiltration